From patchwork Thu Jan 25 14:49:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13530996 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 BD29DC47DDF for ; Thu, 25 Jan 2024 14:51:32 +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=soQd/98rq/jRFv24a25Z/53mQr9rdZtaB1bjLPhX/y8=; b=aHbo3/fo7tT5Bj gSaXHzjIva/d4pR67b2HAYzg51QZue9ywx/HJBQF6BRD9hv4QHX70ILXp54cPEJRtttYxgjcKmEmR bFSNksgRARLnDlPaYUgicXvAjhVjfGz4c8gmktVRVeWNn3Dvz1U5Ku+Eut+L018mpT18JTuWlM/Or 5k7LjiO53mZ0UkVQ+ksy2uXyyXCnI2988KEiKKGe+jEGenHnRxYXudnKCk+VgsT2ewK41/xDiJccX tgVXlyaALvJiWW7+AXO/gKfynYdV4I2JB8iUHEc9490fiHYcYs5BaHWTN0KIgYg/mqtLiW18VOhJh zyAmwGnNWxjcA4eY4TxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT14W-00000000SiU-2Fd3; Thu, 25 Jan 2024 14:51:16 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT13g-00000000S0c-3Gzs for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 14:50:26 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e76109cdeso75720795e9.0 for ; Thu, 25 Jan 2024 06:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706194223; x=1706799023; 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=GwSZ9ii64mt7cJNVg0lI8ru0eSDBGUd0YlY2mDEiodU=; b=peR8lBR+upvjUmvC/MhkQazZkVgbyXtM6ImySVfiuCO/gCvgSEcUgcYxk/wuUgeFsz cRbiSqvQAgwWS6tz3CFPa90W0atgOcMWJgj5qUI1i5JoBcv9f0QUXHaqqqkH0vd7E5ol pH45Mcht6XxKq7gDWyYxIdOgDNM1/mNYGZidXaK+g4wAlgxSSUkM/DiFf4+iIscSA9ou q2kRdzDtbjEDRONlm3mTrnZ43Bw1al2cM10xvPCxo9jGr6RlSl79B9deJ891WqQPO67H jOJzgHrsEFZOsi+wEO4JprBc3YnqdZHMQOD92cDvDYD3IEiiJpK30lBCsCdVq8Kxa6az uLcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706194223; x=1706799023; 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=GwSZ9ii64mt7cJNVg0lI8ru0eSDBGUd0YlY2mDEiodU=; b=lzco+NUhaHCmk55yhNaEoN9fBxS8m3XMTq/gDgDQAiy4yhzLXZpoxZod/YkQGzPBYV FWYwgIwOYJPrz1ba/iDs+nyCgLzl2Hoy2FantTdcroQJtcd1Dp2zFCDWgIm/87EVO2AQ kjMfVLzDSIrB+krpYLD7OPJc+Aj3wjoxSnuZ0oaQILcr71t0yxZdbq/0NeIRfDdrgyFo SWksbcAFJiw6+Mgep2sdDmlRvyJ8Hyq8zhG7HT2HWAmyrjnmV4QiK5dYqMv+LZTKhbm+ /+NHuMa2tdO408rZmpwgLA/1r0bz1omIp9HDVfuU4OA95z0h+FB46nul0oSB5+J2VVwt 6QhQ== X-Gm-Message-State: AOJu0YxWsMSvozvOK2dqLseGR0IA3dNkLh9+5iiVIHbRzjQxAU3/jHyd uzeaYAqOM/m7DPpET9/1w3iGtq/QcZBM67/bBk6Z2bH6bOba7S59nC60eUfEykE= X-Google-Smtp-Source: AGHT+IHU3uE9VctkwSLc7sy1ouZi/e0ls1mgPCFV1inwCVVGb/ieTXa3QkXnQoUQMDecFLIT7pf3+w== X-Received: by 2002:a05:600c:458b:b0:40e:af93:54f1 with SMTP id r11-20020a05600c458b00b0040eaf9354f1mr697668wmo.5.1706194223137; Thu, 25 Jan 2024 06:50:23 -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 v17-20020a05600c471100b0040d91fa270fsm2875875wmo.36.2024.01.25.06.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:50:22 -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 v2 14/28] spi: s3c64xx: rename prepare_dma() to s3c64xx_prepare_dma() Date: Thu, 25 Jan 2024 14:49:52 +0000 Message-ID: <20240125145007.748295-15-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240125145007.748295-1-tudor.ambarus@linaro.org> References: <20240125145007.748295-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-20240125_065024_882686_F08AA386 X-CRM114-Status: GOOD ( 11.96 ) 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 Reviewed-by: Sam Protsenko --- 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 25d642f99278..447320788697 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -273,8 +273,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; @@ -440,7 +440,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: @@ -472,7 +472,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); } }