From patchwork Fri Jan 26 17:15:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13532914 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 3C247C47DDF for ; Fri, 26 Jan 2024 17:17:50 +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=2WuzJ33RV2FBsb580s25+Jrx1Ui8A2+zWNO/cmuhh/Q=; b=lkunfD1jzBAT4q nCORzIS9Dhv0eL1e8LOLH6gDX+u47wDimn2uZ4cli9D7EpUc9CMEk5WrZJ+tFB/ZNMrhGZeHyNzbH rAS2Y4NM3bvakUMaYc8Dx0QmdpOUqYlJmrKx9dn+mFHQu95Z4vZPerXQGYPGVpYJ3a3lxqLb8k0ue G5gslV8+zMkpz/nguvq6LjG2Puu4cyaKwTe7wmAKRLMpd+wiFdcor/NYS8ZnwFXIR5PnYtXF4keml 5uApxdex8xIFwZXmvdRDsR6ujGn4mkRzsJPQh+7jPnXgpOSXWKlFVrAKDlIRcUKEkQ+Nyxr6OnOhT s0vO1TQuzEN+yOFJoPMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTPpj-00000004qX1-42Gq; Fri, 26 Jan 2024 17:17:39 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTPoL-00000004pZZ-2OKA for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 17:16:16 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40e7065b692so9309385e9.3 for ; Fri, 26 Jan 2024 09:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706289367; x=1706894167; 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=DVq9gzGN+1aHFWyNtJAgoaKp9sfSAHeIW/0R0QyQQkg=; b=nSbO2D2HULAI9nZBPmGqsWpB2YgKJTt/AtpMEnvu8kWz8T8AuQ1UC16lG3kqGKov9p ssQs/3j0X36Ehkfy5HuxGMN8UIKSPF47N5DQwrZmOnGigfVigX4/Kmr9Li4zN9W3y0qK 95iDsu2k/m52BXNgqFCNAPu3WRiGz/e0u1Ue5woULZG7lHhBFl4ShXU0yM+S5hQf3ad9 vE527pvMGGNz7p+w80plGbQTRVyVtywb76C0kOIqQ148R1ely7GhvZIg46JzlClWCPjI RB1JY9l+IzNAX32GBgmyuILoAplHwFEWgDz+gmuUEZvnqUi42rgGKxhcI832S8p6m6XJ EPWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706289367; x=1706894167; 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=DVq9gzGN+1aHFWyNtJAgoaKp9sfSAHeIW/0R0QyQQkg=; b=LxEBRw+D/deF2b5qlfuj6HTccYJuYEck4bmesT6hTsv+tdq4SyQq1rF+3wLAEIDmZE Mz54DYn5vl1HEVGJaQ0d4XE32ajhK57zUk7C/Zw6xYVC3nB3i8/2a3q+pGedecBkrsfh 3dUVdfxEnm+Qkj9uA0X1J9FbtPAe7satLMW5K4iW0y/m605a+IDzr49o/IFzvPbeEVYN T+W2IE5ZpQNHXOe88SUzg/imCugHEDgK3u1CULJJnH2MZJ80S1jEBQfW8RnYeMCpjcjf P4+csFKajq6MzKcNK6w9QgXj6fy2R6WTaFJimwPNStzKkOCCnxtbot7Kjil6DPFgrYqG +L/g== X-Gm-Message-State: AOJu0Yw3WaUITlZIU8IOdPWnZw0V2IQ3C565Lfv9zjhxxLWFnRnqVTwE bG6j/KOEHvjqJuNU5GPVjqrR8aN7VFxRB8QEuITEiy8KIfEY+WzaPC0gRXNepX4= X-Google-Smtp-Source: AGHT+IFVRdh+nTto07hFuQ0RqYhrZMrRuBlmG3jqU+FgxzdxqJtLZQQ0bXMJzggiSnO7a4H5ktlVvA== X-Received: by 2002:a05:600c:2146:b0:40e:e241:9347 with SMTP id v6-20020a05600c214600b0040ee2419347mr87421wml.85.1706289367150; Fri, 26 Jan 2024 09:16:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 09:16:06 -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 15/17] spi: s3c64xx: remove duplicated definition Date: Fri, 26 Jan 2024 17:15:43 +0000 Message-ID: <20240126171546.1233172-16-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_091613_873474_2C54421F X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. 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 S3C64XX_SPI_TRAILCNT brings no benefit in terms of name over S3C64XX_SPI_MAX_TRAILCNT. Remove the duplicated definition. Signed-off-by: Tudor Ambarus Reviewed-by: Sam Protsenko --- drivers/spi/spi-s3c64xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index dc779d5305a5..e9344fe71e56 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -115,8 +115,6 @@ #define S3C64XX_SPI_MAX_TRAILCNT 0x3ff #define S3C64XX_SPI_TRAILCNT_OFF 19 -#define S3C64XX_SPI_TRAILCNT S3C64XX_SPI_MAX_TRAILCNT - #define S3C64XX_SPI_POLLING_SIZE 32 #define msecs_to_loops(t) (loops_per_jiffy / 1000 * HZ * t) @@ -1092,7 +1090,7 @@ static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd) val = readl(regs + S3C64XX_SPI_MODE_CFG); val &= ~S3C64XX_SPI_MODE_4BURST; val &= ~(S3C64XX_SPI_MAX_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); - val |= (S3C64XX_SPI_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); + val |= (S3C64XX_SPI_MAX_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); writel(val, regs + S3C64XX_SPI_MODE_CFG); s3c64xx_flush_fifo(sdd);