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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C93BC4321E for ; Sun, 4 Dec 2022 15:34:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9052B856DE; Sun, 4 Dec 2022 16:16:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="UaSyuwEZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C1A4B8563C; Sun, 4 Dec 2022 16:15:36 +0100 (CET) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C5EA9852FF for ; Sun, 4 Dec 2022 16:15:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ed1-x52d.google.com with SMTP id i15so4415672edf.2 for ; Sun, 04 Dec 2022 07:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ib0x9+N9+iXKM4qcGluaT4wpmh49J3Irxf89argAuCY=; b=UaSyuwEZ3+J38+yH5tex7ib0RLVAzRxXsNjrYUvmu6r2HDvJ0d8Pxex4dHNhaWXxGx on2L4hRAOeicvB3nhRTTp9H7WqYVJqDa2DDif/QiTvLcVe2Vgt63syK+VsVp7I0pcW6F 1M0sXiPgDPLaXWs9WAVRf2PQcYCHjJNuCYvJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ib0x9+N9+iXKM4qcGluaT4wpmh49J3Irxf89argAuCY=; b=HPykCB6ReAsTzqyVOeIBRJMg98P+03jzcUeCl+/64Mi2WLCPZi1DUfLwAGnsI46M7I fOh/cFKgvhf9IxQPTiwU1hH/KCGTYKE9XAR0+f4YSrAs1sYrGpA6JXfmjgoxqaf0w3Hf MCiMgB3fub8GCAR53as+YyxkNd1ryizZTXaHc+q5ite/zQ+UQH8Ly2O/NXQOA1ShDAEm HFx/dty7IREiowCfxhzs8JxJVb0vsV6Ybq0k4eehdG7JHTunSJmjkd7WAe32BTWfm50O 9EgsvEtljzRPeCarznnZoEYD8N+u2FQPifzzJ4tFywyzU4z7ycyBW8H4SqqnBFreJUwj s1yw== X-Gm-Message-State: ANoB5plH8wYYkhzt17a3s5wT6RNNHuZ0eBbXl6Usv4gzXOiAOvbnUKE5 rBpgzSk+Ia0sGX4qfug8pK/dlNGtncsAn2Sq X-Google-Smtp-Source: AA0mqf4FZ6kgRsrSaFKq8agDFxd0eZvvlZGmJ7oVGxRVczCi8UYqzY8mLx7IPb/CV9HqUTKFa1/9bg== X-Received: by 2002:a50:9fc3:0:b0:46c:3a7c:9ee7 with SMTP id c61-20020a509fc3000000b0046c3a7c9ee7mr8340651edf.208.1670166932229; Sun, 04 Dec 2022 07:15:32 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-61c7-2644-b62d-0af3.res6.spectrum.com. [2603:6081:7b00:6400:61c7:2644:b62d:af3]) by smtp.gmail.com with ESMTPSA id b21-20020aa7c915000000b00461816beef9sm5174405edt.14.2022.12.04.07.15.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:15:31 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 148/149] cf_spi.c: Rename CONFIG_SPI_IDLE_VAL to SPI_IDLE_VAL Date: Sun, 4 Dec 2022 10:14:19 -0500 Message-Id: <20221204151420.56851-58-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221204151420.56851-1-trini@konsulko.com> References: <20221202214251.3027264-41-trini@konsulko.com> <20221204151420.56851-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This value is never changed by boards, so just rename it to SPI_IDLE_VAL to fit with the rest of the code. Signed-off-by: Tom Rini --- drivers/spi/cf_spi.c | 12 ++++++------ drivers/spi/sandbox_spi.c | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index ea23357090fe..1a841b5dcefc 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -32,11 +32,11 @@ struct coldfire_spi_priv { DECLARE_GLOBAL_DATA_PTR; -#ifndef CONFIG_SPI_IDLE_VAL +#ifndef SPI_IDLE_VAL #if defined(CONFIG_SPI_MMC) -#define CONFIG_SPI_IDLE_VAL 0xFFFF +#define SPI_IDLE_VAL 0xFFFF #else -#define CONFIG_SPI_IDLE_VAL 0x0 +#define SPI_IDLE_VAL 0x0 #endif #endif @@ -184,7 +184,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen, } if (din) { - cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL); + cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL); if (cfspi->charbit == 16) *spi_rd16++ = cfspi_rx(cfspi); else @@ -208,7 +208,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen, } if (din) { - cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL); + cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL); if (cfspi->charbit == 16) *spi_rd16 = cfspi_rx(cfspi); else @@ -216,7 +216,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen, } } else { /* dummy read */ - cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL); + cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL); cfspi_rx(cfspi); } diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 0564d8b55e70..f844597d04cf 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -24,10 +24,6 @@ #include #include -#ifndef CONFIG_SPI_IDLE_VAL -# define CONFIG_SPI_IDLE_VAL 0xFF -#endif - /** * struct sandbox_spi_priv - Sandbox SPI private data * -- 2.25.1