From patchwork Mon Apr 16 15:40:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 10343327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F0086039A for ; Mon, 16 Apr 2018 15:41:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1531B287BA for ; Mon, 16 Apr 2018 15:41:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0847C287B9; Mon, 16 Apr 2018 15:41:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FC34287B2 for ; Mon, 16 Apr 2018 15:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbeDPPl1 (ORCPT ); Mon, 16 Apr 2018 11:41:27 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:32560 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbeDPPl0 (ORCPT ); Mon, 16 Apr 2018 11:41:26 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180416154125epoutp0408c138cc74dc66a9563170a039acdb8f~l9N51HtQ33185031850epoutp04F; Mon, 16 Apr 2018 15:41:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180416154125epoutp0408c138cc74dc66a9563170a039acdb8f~l9N51HtQ33185031850epoutp04F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523893285; bh=6r82YGwElxxtciwSMo3/zUg8jzR5zPbE3kPTmtXvnaI=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=YPgG5jsZO/trqz02YQO9KUTGhrsvZdrlTRk0tLhfNo+dMGKX9LgdJwc8rNwPSepwV KclvGtPd3I4KjU/cVK9NtB4GZ/jWc+2taxFqaXnp0BwMFdtDtQwSwpcob5FpDX+Exb ArdhQCU1/UdTtpnStYU5b9le20p+1okuL64bzOEQ= Received: from epsmges1p2.samsung.com (unknown [182.195.42.54]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180416154124epcas1p3cb85260b3f903369cc22c8d16881be32~l9N429eJJ3237132371epcas1p3H; Mon, 16 Apr 2018 15:41:24 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id D0.E1.04034.424C4DA5; Tue, 17 Apr 2018 00:41:24 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180416154122epcas1p1ae714af12f8da08783c47fcd820c40e7~l9N3teXZi1555615556epcas1p1N; Mon, 16 Apr 2018 15:41:22 +0000 (GMT) X-AuditID: b6c32a36-f6fff70000000fc2-5a-5ad4c424f3ca Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 26.E1.03849.224C4DA5; Tue, 17 Apr 2018 00:41:22 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7A004PTBJEDK00@mmp2.samsung.com>; Tue, 17 Apr 2018 00:41:22 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Cc: andi@etezian.org, krzk@kernel.org, kgene@kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, Sylwester Nawrocki Subject: [PATCH 3/6] spi: spi-s3c64xx: Drop unused enable_datapath() function argument Date: Mon, 16 Apr 2018 17:40:18 +0200 Message-id: <20180416154021.25626-3-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180416154021.25626-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsWy7bCmnq7KkStRBrMfsVss/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BabHl9jtZhxfh+TRePHm+wWa4/cZbc4/Kad1YHL4/qST8wem1Z1 snlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBn/H3YyFZzlrNj7sZG1gfEvexcjJ4eE gInEjwe7WboYuTiEBHYwSvQcucwK4XxnlPjR95QNpmrznWdQVRsYJR52HoWq+sUoceZfI9gs NgFDid6jfYwgtoiAmMTtOZ3MIEXMAk1MEq0P1rGCJIQFIiRWvJgGVsQioCqxfOtCsGZeAWuJ W2+mQB0lL/F+wX2wGk4BG4njf0+CDZIQWMAmcXTTY6giF4lXc1ewQNjCEq+ObwGKcwDZ0hKX jtpChKslOtu62CF6Wxgl/ky7BPWPtcTh4xfBDmIW4JN497WHFaKXV6KjTQiixEOis3E/E4Tt KHF3x3V2iI/7GSX6evcyT2CUWsDIsIpRLLWgODc9tdiwwEivODG3uDQvXS85P3cTIzhqtcx2 MC4653OIUYCDUYmHV2LHlSgh1sSy4srcQ4wSHMxKIrzzDwGFeFMSK6tSi/Lji0pzUosPMUpz sCiJ8z71ORMlJJCeWJKanZpakFoEk2Xi4JRqYOyb8l++XcI21k5amD3qXnv4P47D54LrdRwn m7zcuGb1G56r8v7KNSLchyot13qY9T4317BjvyuW0Xzl6N3aVf+qzj6102jfeKhBeWZZxtfi LbxeXdl1tUcmOLzlCvAPFhU4ura6xKt67myzKzVinZKvJLMXSMdu4T34lGuZwo89uap+xyTX KLEUZyQaajEXFScCAIhkgBbWAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFLMWRmVeSWpSXmKPExsVy+t9jQV2lI1eiDG5dN7VY/OM5k8XGGetZ LaY+fMJm0f/4NbPF+fMb2C02Pb7GajHj/D4mi8aPN9kt1h65y25x+E07qwOXx/Uln5g9Nq3q ZPPYvKTeo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDL+P+xkKjjLWbH3YyNrA+Nf9i5GTg4J AROJzXeesXQxcnEICaxjlPh/aAs7hPOLUeJERwsTSBWbgKFE79E+RhBbREBM4vacTmaQImaB JiaJ958/AzkcHMICERKXv0aC1LAIqEos37oQbAOvgLXErTdToLbJS7xfcB9sDqeAjcTxvyeZ QWwhoJorS1+zTmDkWcDIsIpRMrWgODc9t9iowDAvtVyvODG3uDQvXS85P3cTIzDEth3W6tvB eH9J/CFGAQ5GJR5eiR1XooRYE8uKK3MPMUpwMCuJ8M4/BBTiTUmsrEotyo8vKs1JLT7EKM3B oiTOezvvWKSQQHpiSWp2ampBahFMlomDU6qB0aNheWTt63kNtWvK51/ZxhVQ1390meZZLqXd DPnf7ifM7/v/5b1H9oRF9awV7Hu2dfzka9isFNIzN29anYrO1c9tP6pMXcqPvLgo0fjEtshp KcvH9G57i4wWJkGtL3dc9Jjb7x8q2hVyeC9D9yXp3PqOWWbqMR/en9t1NiHFaDpf0KSGGXf9 lFiKMxINtZiLihMBErWpDy0CAAA= X-CMS-MailID: 20180416154122epcas1p1ae714af12f8da08783c47fcd820c40e7 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180416154122epcas1p1ae714af12f8da08783c47fcd820c40e7 X-RootMTR: 20180416154122epcas1p1ae714af12f8da08783c47fcd820c40e7 References: <20180416154021.25626-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The spi pointer argument is not used now so remove it. While at it s3c64xx_ prefix is added to the function name. Signed-off-by: Sylwester Nawrocki Reviewed-by: Andi Shyti Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index b7333a883442..e90e60bc1ecc 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -348,9 +348,8 @@ static bool s3c64xx_spi_can_dma(struct spi_master *master, return xfer->len > (FIFO_LVL_MASK(sdd) >> 1) + 1; } -static void enable_datapath(struct s3c64xx_spi_driver_data *sdd, - struct spi_device *spi, - struct spi_transfer *xfer, int dma_mode) +static void s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd, + struct spi_transfer *xfer, int dma_mode) { void __iomem *regs = sdd->regs; u32 modecfg, chcfg; @@ -665,7 +664,7 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, sdd->state &= ~RXBUSY; sdd->state &= ~TXBUSY; - enable_datapath(sdd, spi, xfer, use_dma); + s3c64xx_enable_datapath(sdd, xfer, use_dma); /* Start the signals */ s3c64xx_spi_set_cs(spi, true);