From patchwork Thu Mar 20 11:11:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 26677 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1F7EE20143 for ; Thu, 20 Mar 2014 11:13:01 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id i17sf1688516qcy.7 for ; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=7PiCjomBMqHL11IlGl9liccEIdWsoETnvLaDB7VIAwA=; b=fUzk2nKJpUSBKNJwvZALKCae1QsBkOcZTUWr0XwlDraQVETJuaJqxXI3kAay6INWum VopNwGttvlJzHN+HgAxFAkPZs7/ii7vhndlJC3WieH/f+7QXHlTHUSC+CSsgQBQdMpKP H54uJxFTEUfe88Dgymao/+6iGFObb+qRypTAYUXx7sAGSVbk298B2/fAYHLMHcYSfWjy VI3oleoPEhVubAL7N6vvW3G1YSAe9axSh2te8urkvUcbdWQ9Fn2N5Y92PCsxdPlJwBiM LAveQwJVlu6wTcNUtNKDznTHSDtitjr6k0FF9ve5X3COxLkwbHpmPuxXyQ8ijbW7md9g 4o7g== X-Gm-Message-State: ALoCoQl6Bb3tmGJnL1Q+SIUi3RF1p3q1cbnPjd9O0w9IpE2S5EdpDAAfzc+hJYsl/LgLCUXKoPIS X-Received: by 10.58.127.66 with SMTP id ne2mr6970312veb.27.1395313981633; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.10 with SMTP id i10ls186494qgf.62.gmail; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) X-Received: by 10.220.69.133 with SMTP id z5mr162802vci.49.1395313981523; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id e10si339781vcn.124.2014.03.20.04.13.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 04:13:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if17so710380vcb.8 for ; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) X-Received: by 10.58.172.132 with SMTP id bc4mr506003vec.45.1395313981442; Thu, 20 Mar 2014 04:13:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp379137vck; Thu, 20 Mar 2014 04:13:00 -0700 (PDT) X-Received: by 10.181.11.169 with SMTP id ej9mr2378083wid.18.1395313980429; Thu, 20 Mar 2014 04:13:00 -0700 (PDT) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id dg1si12323252wib.54.2014.03.20.04.13.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Mar 2014 04:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQatt-00040y-4E; Thu, 20 Mar 2014 11:12:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQatn-0003u0-FL; Thu, 20 Mar 2014 11:12:35 +0000 Received: from mail-we0-f175.google.com ([74.125.82.175]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQatd-0003ol-I6 for linux-arm-kernel@lists.infradead.org; Thu, 20 Mar 2014 11:12:26 +0000 Received: by mail-we0-f175.google.com with SMTP id q58so461106wes.20 for ; Thu, 20 Mar 2014 04:12:03 -0700 (PDT) X-Received: by 10.180.182.166 with SMTP id ef6mr10477622wic.29.1395313923007; Thu, 20 Mar 2014 04:12:03 -0700 (PDT) Received: from lee--X1.home (host109-148-116-196.range109-148.btcentralplus.com. [109.148.116.196]) by mx.google.com with ESMTPSA id jd2sm5535554wic.9.2014.03.20.04.12.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 04:12:02 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, computersforpeace@gmail.com Subject: [PATCH 1/5] mtd: st_spi_fsm: Remove useless consts from function arguments Date: Thu, 20 Mar 2014 11:11:43 +0000 Message-Id: <1395313907-25318-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395313907-25318-1-git-send-email-lee.jones@linaro.org> References: <1395313907-25318-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140320_071225_739148_B852ABA3 X-CRM114-Status: GOOD ( 11.13 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.175 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-mtd@lists.infradead.org, dwmw2@infradead.org, lee.jones@linaro.org, kernel@stlinux.com, angus.clark@st.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Reported-by: Brian Norris Signed-off-by: Lee Jones --- drivers/mtd/devices/st_spi_fsm.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c index aefd48d..dcc1dc3 100644 --- a/drivers/mtd/devices/st_spi_fsm.c +++ b/drivers/mtd/devices/st_spi_fsm.c @@ -785,8 +785,7 @@ static void stfsm_wait_seq(struct stfsm *fsm) dev_err(fsm->dev, "timeout on sequence completion\n"); } -static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, - const uint32_t size) +static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, uint32_t size) { uint32_t remaining = size >> 2; uint32_t avail; @@ -811,8 +810,7 @@ static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, } } -static int stfsm_write_fifo(struct stfsm *fsm, - const uint32_t *buf, const uint32_t size) +static int stfsm_write_fifo(struct stfsm *fsm, uint32_t *buf, uint32_t size) { uint32_t words = size >> 2; @@ -1544,8 +1542,8 @@ static int stfsm_read(struct stfsm *fsm, uint8_t *buf, uint32_t size, return 0; } -static int stfsm_write(struct stfsm *fsm, const uint8_t *const buf, - const uint32_t size, const uint32_t offset) +static int stfsm_write(struct stfsm *fsm, const uint8_t *buf, + uint32_t size, uint32_t offset) { struct stfsm_seq *seq = &fsm->stfsm_seq_write; uint32_t data_pads; @@ -1670,7 +1668,7 @@ static int stfsm_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, return 0; } -static int stfsm_erase_sector(struct stfsm *fsm, const uint32_t offset) +static int stfsm_erase_sector(struct stfsm *fsm, uint32_t offset) { struct stfsm_seq *seq = &stfsm_seq_erase_sector; int ret;