From patchwork Tue Jan 23 15:34:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13527639 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A217BC48277 for ; Tue, 23 Jan 2024 15:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9koSoYO7lBm0itUr34XHpz5TQ3rHTHgZARGJuN4qRZk=; b=Tbj0P4L42jImd0 MMOB84z5fT+CvPpYmxn3MJzZrDSq5MtjMjZ/DvOTsxb+lMgUIkaUkXOxP61jThzAAMg5MZUB/ll/4 oGIaSKJDMzRMiBJm2ALpNiqIhf2p5q6xaanGoH00f3kqy4nnsmXgRohfMPLhEwbjEMguFavzDBd4b aj9pz6QaiEBKt7+k1+WnMqyKdpnD1Y/nOxr3HYSJceJHmuiCCj0v43qfqDRYfdxPKMVhG4pNoJHtl mH48xCFH/m5Xba1GREZTP4zFR1DrL4jOqF2dzTJpB0HZJ0TTmwf4eQa+ZYWFAetaud7T2lHKEl5j9 XC8bb7P6ZSabNWOferkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSInx-00H3ro-2s; Tue, 23 Jan 2024 15:35:13 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSInO-00H3PO-23 for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 15:34:40 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40ec2594544so4095675e9.0 for ; Tue, 23 Jan 2024 07:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706024077; x=1706628877; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Kxj/GKivy8KHz8wlyYVu9rRfrbEmnmhas4Q7ujviZXU=; b=BySKkaCLqa3108Bo+u8AGz0zqJZfcGDBNf8nb/JMK3anQUr1jWZBr5RWLyYcx21iV1 haaBn5LIu5Mneq+DA0lRtY5t8x5pUMrj320ilpOB/gnNWUC61IWH9fTLbv8oA02FcuQm Y3nbUeTBu69t+xXs4eBw3aDEizmeChLmLyqbRwHVl1O/AwAJqkRDJ2lW9AyiozFSIxvG npbA2Fy8DG2pm1iY8nQc+lJlBIr3AhUCPtP2HUSBPu/Xpl6I813VwiNdDMHTjqicZKpy kZbEpeilaE6snxltj4SGfiAxKtgnL5R1lvIlp52usOO8DIrtzEeF5uuHdtgcVkpDqq+b Ct8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706024077; x=1706628877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kxj/GKivy8KHz8wlyYVu9rRfrbEmnmhas4Q7ujviZXU=; b=xFjm5D5XOhHikyqk+7vjqjzDBsBsc1FGTnx+JxNWHO6zFrLu7/jtmM7fQvxITWkB+z osmKSA0wqlxo/NCA9Hshf9QDiiG+JA/TKuJpHn1u5Yo+/hblf1hPcHujcmJ/MctZxdTD c61QqaAZ4H/kgr1YifuC14jQ7l9lHbctnE6tz0YgpvQhiC96bxvG+Uf1DzbL8h/scNaK v0k8wpDSE5+UZgmyJKcoGsC1lKugay+sug0lXhRL72CqKsvYcD+pCilSvSLS1Ad6dCPf snYfUW3xvPruahZZFU0QbQkdh8gwajWXNko6edL7Ew9uiuwHWjEq2d4aVex7eRw8kBA3 sTJA== X-Gm-Message-State: AOJu0Yy4MO5ze765i3OcH+X04Ifu56hPtPGtblvqI5o4bc6lluJHFWKi YKvZ4LfqUfG1L+JYzwGlbvCjv4APpCtNtkIXujqi4B3/+AYx+gDWVNk+MxCPfa4= X-Google-Smtp-Source: AGHT+IFcab2zDsD9I27H2KBoICJD/fGV5rpgJVASWI6Q+u5HNWTcCrDWfrf1zCUTug9AMM0BIJrhgw== X-Received: by 2002:a7b:cd8f:0:b0:40e:b505:5581 with SMTP id y15-20020a7bcd8f000000b0040eb5055581mr265504wmj.60.1706024077455; Tue, 23 Jan 2024 07:34:37 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id p21-20020a05600c359500b0040e3488f16dsm42457536wmq.12.2024.01.23.07.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:34:36 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 13/21] spi: s3c64xx: rename prepare_dma() to s3c64xx_prepare_dma() Date: Tue, 23 Jan 2024 15:34:12 +0000 Message-ID: <20240123153421.715951-14-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240123153421.715951-1-tudor.ambarus@linaro.org> References: <20240123153421.715951-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_073438_695664_58095924 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Don't monopolize the name. Prepend the driver prefix to the function name. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-s3c64xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 2b088a190ab9..8897b5895cde 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -272,8 +272,8 @@ static void s3c64xx_spi_dmacb(void *data) spin_unlock_irqrestore(&sdd->lock, flags); } -static int prepare_dma(struct s3c64xx_spi_dma_data *dma, - struct sg_table *sgt) +static int s3c64xx_prepare_dma(struct s3c64xx_spi_dma_data *dma, + struct sg_table *sgt) { struct s3c64xx_spi_driver_data *sdd; struct dma_slave_config config; @@ -439,7 +439,7 @@ static int s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd, chcfg |= S3C64XX_SPI_CH_TXCH_ON; if (dma_mode) { modecfg |= S3C64XX_SPI_MODE_TXDMA_ON; - ret = prepare_dma(&sdd->tx_dma, &xfer->tx_sg); + ret = s3c64xx_prepare_dma(&sdd->tx_dma, &xfer->tx_sg); } else { switch (sdd->cur_bpw) { case 32: @@ -471,7 +471,7 @@ static int s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd, writel(((xfer->len * 8 / sdd->cur_bpw) & 0xffff) | S3C64XX_SPI_PACKET_CNT_EN, regs + S3C64XX_SPI_PACKET_CNT); - ret = prepare_dma(&sdd->rx_dma, &xfer->rx_sg); + ret = s3c64xx_prepare_dma(&sdd->rx_dma, &xfer->rx_sg); } }