From patchwork Tue Apr 17 14:29:51 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: 10345289 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 0212C60542 for ; Tue, 17 Apr 2018 14:33:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D63D528372 for ; Tue, 17 Apr 2018 14:33:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D48F8209CE; Tue, 17 Apr 2018 14:33:44 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D6A728372 for ; Tue, 17 Apr 2018 14:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=EVNiITQk2f3h4WQB85x2CXbT99XqWh2iq/KIZ9gZhJo=; b=be9UK5qbISxMKSRQxfcKgwxgoz NwyDA1gKvW9qHGSoh3uaJEVtSQUUHL4lhBoM6MMRtocs8ljyaRJbAgp8mnFMPAUr6EtHwp+pNC3Cq VOiP7nWxfe5MirEhB0nZqgDPkluj83I2hOtrX35mNnf2fRYujt3Ws5hh0Qq/00DhhYpgLdAyWqApK 4prTNA6z++u79mkxgeF3sA2SXRAmd5uOkXWawnJyI2cga2wLcKAT+h0x5b/bDFi9eV/lEictl+wuW wHGAjNvY93VPz3mbvz5trcBl8kyMv/5CewPfIPwFcaOXfg+3Kv1egp50XmYzYfEZpNh02i3wQoNqg P7NoUE7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8Rfm-0001uc-45; Tue, 17 Apr 2018 14:33:30 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8RdK-0000L3-Kd for linux-arm-kernel@lists.infradead.org; Tue, 17 Apr 2018 14:31:00 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180417143047epoutp044f04b9ee533233ccc20be1a1897dfbe8~mP5hBnhAJ0145301453epoutp04O; Tue, 17 Apr 2018 14:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180417143047epoutp044f04b9ee533233ccc20be1a1897dfbe8~mP5hBnhAJ0145301453epoutp04O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523975447; bh=83YnN65jVkp4Q/ffjd12VvIDVuKqweLYSDBYDJPrXqo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=pHNkr5IX3NX03PxSfHiXlhGpho91tztgaED3sE0nShBGW6G4e06RW/hy87U9Znmum XEJV4yHwawlxqb8l+qQLAeHZcz6iMhoQbzFy1edKUHMuIb+GgJZVteV96f0gNvlwnH V6D/jWNd1pM0CHwbXsEhxNUZAfZHTzyPj0mAABgI= Received: from epsmges2p2.samsung.com (unknown [182.195.42.70]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180417143046epcas2p1918d68d8e5d0e3dd85bd899484f04a30~mP5gjwDI21344113441epcas2p1_; Tue, 17 Apr 2018 14:30:46 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 4D.F9.04072.61506DA5; Tue, 17 Apr 2018 23:30:46 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180417143045epcas2p2ac92ce458223a849647265d59b12bc70~mP5fiolRC1410414104epcas2p2a; Tue, 17 Apr 2018 14:30:45 +0000 (GMT) X-AuditID: b6c32a46-b85ff70000000fe8-ff-5ad605168d13 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A8.5E.03827.51506DA5; Tue, 17 Apr 2018 23:30:45 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7C0012A2Y8EI10@mmp1.samsung.com>; Tue, 17 Apr 2018 23:30:45 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Subject: [PATCH v2 5/8] spi: spi-s3c64xx: Add missing s3c64xx_ prefix to function names Date: Tue, 17 Apr 2018 16:29:51 +0200 Message-id: <20180417142954.5507-5-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180417142954.5507-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsWy7bCmma4Y67Uog8cdMhaLfzxnstg4Yz2r xdSHT9gs+h+/ZrY4f34Du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KjYBQ4neo32MILaIgJjE7TmdzCBFzAJN TBLvP38GKxIWiJRomLaXCcRmEVCV2Lh0IjuIzStgJbFnwmRmiHXyEu8X3AcaxMHBKWAtsb9T BMQUAipZ9k9wAiPPAkaGVYySqQXFuem5xUYFRnmp5XrFibnFpXnpesn5uZsYgeG17bBW/w7G x0viDzEKcDAq8fBK7LgSJcSaWFZcmXuIUYKDWUmEd+djoBBvSmJlVWpRfnxRaU5q8SFGaQ4W JXFe/vxjkUIC6YklqdmpqQWpRTBZJg5OqQbGXPVGHmelhf3l5QdqnlVfe1KtkKX0svpB9eoX M29cWLFHc6fqrGmb2LKs7zwwf5tdvO2CSPqbRrX5picY7arOTfZ/+k2rjMlS8d11Xi47JrmK CXkMU4V5GFduKveyejC/QLOrS0//2HbZVVISRd8mPS4XXqtw68GtSAUb2cNmf30WTvjPvsZQ iaU4I9FQi7moOBEAMFdJICsCAAA= X-CMS-MailID: 20180417143045epcas2p2ac92ce458223a849647265d59b12bc70 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180417143045epcas2p2ac92ce458223a849647265d59b12bc70 X-RootMTR: 20180417143045epcas2p2ac92ce458223a849647265d59b12bc70 References: <20180417142954.5507-1-s.nawrocki@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180417_073058_862478_20A2732D X-CRM114-Status: GOOD ( 16.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , b.zolnierkie@samsung.com, krzk@kernel.org, linux-spi@vger.kernel.org, kgene@kernel.org, andi@etezian.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a s3c64xx_ prefix to remaining generic function names so it is clear the code is part of the driver when grepping or looking at debug logs. Signed-off-by: Sylwester Nawrocki Reviewed-by: Andi Shyti --- drivers/spi/spi-s3c64xx.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 5d94915c2738..b9b406138675 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -188,7 +188,7 @@ struct s3c64xx_spi_driver_data { unsigned int port_id; }; -static void flush_fifo(struct s3c64xx_spi_driver_data *sdd) +static void s3c64xx_flush_fifo(struct s3c64xx_spi_driver_data *sdd) { void __iomem *regs = sdd->regs; unsigned long loops; @@ -348,8 +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_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; @@ -439,8 +439,8 @@ static u32 s3c64xx_spi_wait_for_timeout(struct s3c64xx_spi_driver_data *sdd, return RX_FIFO_LVL(status, sdd); } -static int wait_for_dma(struct s3c64xx_spi_driver_data *sdd, - struct spi_transfer *xfer) +static int s3c64xx_wait_for_dma(struct s3c64xx_spi_driver_data *sdd, + struct spi_transfer *xfer) { void __iomem *regs = sdd->regs; unsigned long val; @@ -482,8 +482,8 @@ static int wait_for_dma(struct s3c64xx_spi_driver_data *sdd, return 0; } -static int wait_for_pio(struct s3c64xx_spi_driver_data *sdd, - struct spi_transfer *xfer) +static int s3c64xx_wait_for_pio(struct s3c64xx_spi_driver_data *sdd, + struct spi_transfer *xfer) { void __iomem *regs = sdd->regs; unsigned long val; @@ -666,7 +666,7 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, sdd->state &= ~RXBUSY; sdd->state &= ~TXBUSY; - enable_datapath(sdd, xfer, use_dma); + s3c64xx_enable_datapath(sdd, xfer, use_dma); /* Start the signals */ s3c64xx_spi_set_cs(spi, true); @@ -674,9 +674,9 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, spin_unlock_irqrestore(&sdd->lock, flags); if (use_dma) - status = wait_for_dma(sdd, xfer); + status = s3c64xx_wait_for_dma(sdd, xfer); else - status = wait_for_pio(sdd, xfer); + status = s3c64xx_wait_for_pio(sdd, xfer); if (status) { dev_err(&spi->dev, "I/O Error: rx-%d tx-%d res:rx-%c tx-%c len-%d\n", @@ -694,7 +694,7 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, dmaengine_terminate_all(sdd->rx_dma.ch); } } else { - flush_fifo(sdd); + s3c64xx_flush_fifo(sdd); } return status; @@ -928,7 +928,7 @@ static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd) val |= (S3C64XX_SPI_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); writel(val, regs + S3C64XX_SPI_MODE_CFG); - flush_fifo(sdd); + s3c64xx_flush_fifo(sdd); } #ifdef CONFIG_OF