From patchwork Fri Jan 26 17:15:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13532908 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 E8508C47DDF for ; Fri, 26 Jan 2024 17:17:41 +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=YgWPXDA1xHP0EIDQgwXGaROG/XRkYoESE8hHn+WH8W0=; b=KmnpW9aX0tyNvj eyuAhwsEX978fhW12/+Q1pK6LWC/pOqFUsSHz5SZp/nezsyHVBr+Os05Z67bcjsLY6+nUn0xiAJ1k dO7fJCezCQkerv+Yml+XcwycjPlgY0vLaLHdm+ZssHYhfy/EqAF4d86yCLZZdcB2XFBkcjr8JpROs CAXhtL3vDJGhkKxHBbARhpua3W/kjpa6lO1magBvWA3wqkIqO5duYpDoBeXDrA8KcTPQmtoTe0FMD kx0HmorYyvPlxRyqYHIdhKmxSP/AFV20qPzz6fC8pTatIhHOikUq7YokBE6uYBRr6Jvv6VmtbfVCb XgVuX8/ySW34VuWij0fA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTPpb-00000004qQb-1Nci; Fri, 26 Jan 2024 17:17:31 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTPoB-00000004pVW-3RkJ for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 17:16:06 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40e7065b692so9308265e9.3 for ; Fri, 26 Jan 2024 09:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706289362; x=1706894162; 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=JaPg9S8ljvJnMWoVxzFt5cFSPcbWvq/ipc1ZxlzFBkk=; b=LA4qkrTpcVrKTwXqVasZy4E9ccOAsYVVfsKSO7yR9UvLyJgIYAjgINM3po78q41fZK UTPE6AmLQZDd+Om4eoplrfyGkUbXZciUbBONAu2Sent1dR52vDfcdgc5yDhvHRxKSKSs 1GMtFs91fWmcwfBIf4ggRYvj0Q+jydX1e9VVY2edfaQj+sMYaPhl9GD8fohIjhPLqX8m HCU+f92c8QhvuJf/O6ONSTIAJpCRjJ1NdAVxFCN+qOBH3YCiQ306JThYV+o6r3zuMG9F Q9ytI8H00GMfbiDwZxIhr25QzpqYJhFGk1N7CILVYvswNLJvi18XbJkjVsF3id0JqycX 0rYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706289362; x=1706894162; 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=JaPg9S8ljvJnMWoVxzFt5cFSPcbWvq/ipc1ZxlzFBkk=; b=PU4uBbSvk+CWYOhO2fjbCI00jnJHU4tJHjZAmyAdd6pitddAxASaJf4REF/AJ0gYxC F97duzMfaF+2qqKHUR3q6AUfCYxJh6ojDxDM5bsceX0Ofl16395VVWU8xtyXB0W7tRak zNd9S8F+ZROo0CVrVFAsh1LAswz8cRUboy03hYiQahbG1FUmAevrGLzvmu8igCvURbuM 57A3uQeqO0P5q4zcsdcQvauO8FiY/TmwYXrAODlJsOlxjW4CiFxSVnTo01evjijLsrTU Qvk3dqZQmSZRtyoPjUE3zVvtfRXTWQ+UZJbQlRzCCApWFfXbmAD9tqjDy6oADnJxLj8k GE0Q== X-Gm-Message-State: AOJu0YwhudeTIR17C6DDo3fVxrPx6fLKh52POgmunVL2RpWVtzLeC5Zh VcdnQWbg0UloO5Aq/fdpT8jfm8IfQeaxSg2etoeokcQLFI7+hrCBA2rleqxkKqc= X-Google-Smtp-Source: AGHT+IE88z6ZKihZy73X/hJ1tvJ33+pu9VU9RoQmgEehZIq7TTfq3+V7yphWkv94NZdwTEK7BUmRnw== X-Received: by 2002:a1c:4b10:0:b0:40e:d2fa:fbdd with SMTP id y16-20020a1c4b10000000b0040ed2fafbddmr75392wma.172.1706289362605; Fri, 26 Jan 2024 09:16:02 -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 k10-20020a05600c1c8a00b0040e451fd602sm6287286wms.33.2024.01.26.09.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 09:16:01 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, jassi.brar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v3 11/17] spi: s3c64xx: rename prepare_dma() to s3c64xx_prepare_dma() Date: Fri, 26 Jan 2024 17:15:39 +0000 Message-ID: <20240126171546.1233172-12-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240126171546.1233172-1-tudor.ambarus@linaro.org> References: <20240126171546.1233172-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-20240126_091603_995808_86AB3C5E X-CRM114-Status: GOOD ( 11.68 ) 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. Reviewed-by: Sam Protsenko 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 64daf944b245..76fa378ab5ab 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -278,8 +278,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; @@ -444,7 +444,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: @@ -476,7 +476,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); } }