Message ID | 20240522233135.26835-36-semen.protsenko@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ab3:6414:0:b0:267:d849:ee76 with SMTP id j20csp919380lte; Wed, 22 May 2024 16:38:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVdV85ByIcULiftURgarDKe0Vj7jja+k4oqkSIxtzfQ5huSu5UnOP1uoTREgSr6owWGP65/9Kc6RctiQDh29giO X-Google-Smtp-Source: AGHT+IGq0BkJb+Js5y89AFNUvbhlSQXMd8aX+w0oXpYqpHW9az9ps1vi+c/g4RnEYcEvdmbJd/EY X-Received: by 2002:a05:651c:93:b0:2dc:d2c5:ed0 with SMTP id 38308e7fff4ca-2e94946b3dbmr18502281fa.12.1716421089538; Wed, 22 May 2024 16:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716421089; cv=none; d=google.com; s=arc-20160816; b=cV3ngw8/SQajhJgmFJsryoOPvJlMeOO0vPpZ1Wm6WBjC2ZfiiTDKkwMjwiV4jIGF80 0UHZtry917Y4P9dU6NI1x/0DRmxgB5rVr7RWvu6EupKjTI2K3yX4+fV1fwQnsQhPdmf8 VRGASv8qoE2fVlsR7mmwus5bVJRAtaEh0pHgwhGmNy2dv2FgyZ3K0u4t3K9h3vU6KmOq sFOpirkczaatxQeHV/H8jOEejLlF+GsorlsvbF/nkVg1f9E1JmexfbjYLVi2lujp1SZ8 HTipnw9T89rrWSRhrYq24ERUoXFQ8fISafIRets2s9dgkoUwlBgrZBwnCQxm8KUVDB+6 sj5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=USy/FxJoc3CcVXZRxjRE8i0H1uQ2k9nCv79T/rPzTVI=; fh=xDt6eOQ1/8Ulq+1ZnRvSunGuFAoA9S7XhPtP0Z2BoXM=; b=puZ5ibVolXlyY3CxpPziXXtod7tHNWE8gl24uK7bduhZkmTlUrVtLrCsqnZ96W0Whd x4fAoDauMdDbLu1Iqx91DLRdssmpOdxmUVPnO5p/Xmf9ynpEAK5zxj8Ex/vVVfnzKRnA DECA/CrECIpxtHHYUhrFFZsXJE72FGCBpGY5U57LCjToP2hxYBwy/e1lk5k+Khh+y3IO Hkg0oShuQcuXa5At+CF1WpnAx8mWLey3fFcTXmBCZ/iLJ7QMbS2p8si9ylUu+uEM5WkA Da6wDmokflT7X6AVY079YoFtoh780tfZHu1fQwXlGoYK3zgHCpIWqhEo0EpHeptAwcZZ +Hjw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=enFOo9bB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3270casi16248302a12.391.2024.05.22.16.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:38:09 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=enFOo9bB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34A77888AB; Thu, 23 May 2024 01:32:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="enFOo9bB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 112D18857F; Thu, 23 May 2024 01:32:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 E6A3B885C9 for <u-boot@lists.denx.de>; Thu, 23 May 2024 01:32:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6f0f5645c68so3338957a34.1 for <u-boot@lists.denx.de>; Wed, 22 May 2024 16:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716420725; x=1717025525; darn=lists.denx.de; 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=USy/FxJoc3CcVXZRxjRE8i0H1uQ2k9nCv79T/rPzTVI=; b=enFOo9bB7X8N7IhAqF7lAza+XXrmpq13AkzIp0tBhUopg7ledOkYAV/a7uAzxwd5rw FiGTvQDrkCeQgv2Fozm3i8BkVvFRpEFPsGu3Lu1Eq4k86IpEdx/5vLtqTOjpbalx7FZ8 an73wQWjTpwEz89hgaIqdzO9viLnDzCl4v2CDQW8smmzohS3nx+1CaT3R5FePHMdZZ9S VPHRfmAWclLGWGLyKr2QgR5FczOjxfj4m9IpvWqHEW/1Qq6NW4cWhFiim8dwPgIRIWnY 21dYpXFqmHeLmd4lT9gYP3XJ4aNThdt1sj0BZp0HYIFxa5nF0UV3jbACbcIeiMP5E+6b b5qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716420725; x=1717025525; 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=USy/FxJoc3CcVXZRxjRE8i0H1uQ2k9nCv79T/rPzTVI=; b=L4EenWvK/FysQXPj9BoNnNu9NGpeFRpTZj9V/6cMYbrUVdkkcOqDgLghxNC2MB35QD kP4KurKmStD2drl1OrnetiUi5FFlI5NIYGBUmYMvkKbOKLhQHnUIh2b1M+cOBjzRv2YE oyUcbiFe0HJuWeL83RvMpkNDJvWxvIDwxoePSDmjq54qtcNA9VETJB7K55v3l73KEKRq 4IkGTI7HnGJRqAnvHh/D/nqwBqikwlvH88br47uSGYGm4dlQ8kZH7fnq34vRzY944eUn /iIxXIGNJYygfSeq1tr0Q3af9MvRuV/9tqGEJP6LjXkDQgICsZfDrkJgcvORiIN+CJTd oawA== X-Forwarded-Encrypted: i=1; AJvYcCU5dV2gv8eJd/PjbDosf2wDgIt2y4vNa7h22d/ypB4yEjZyMTmlAWnmK861hb6T7vH3lrMOytAook30jUW6ZL4Kefl9QA== X-Gm-Message-State: AOJu0YzofKt6IR7EWvdI3DDjH+esJ38Da9TSjB8Gt2TtUCo+OFxR7Trq egE1BHOBFMXATnH5EG5POf8q7kJG97nC3J6amQ3UbNeovfBZhtmH1eWA9zRXWQ8= X-Received: by 2002:a9d:5c0b:0:b0:6f0:e6e2:83b0 with SMTP id 46e09a7af769-6f665471c57mr3712006a34.5.1716420725762; Wed, 22 May 2024 16:32:05 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-6f0fdc57a9csm4206240a34.58.2024.05.22.16.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:32:05 -0700 (PDT) From: Sam Protsenko <semen.protsenko@linaro.org> To: Tom Rini <trini@konsulko.com>, Minkyu Kang <mk7.kang@samsung.com>, Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>, Simon Glass <sjg@chromium.org> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>, Kever Yang <kever.yang@rock-chips.com>, Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>, Peter Robinson <pbrobinson@gmail.com>, Jonas Karlman <jonas@kwiboo.se>, Yang Xiwen <forbidden405@outlook.com>, Ferass El Hafidi <vitali64pmemail@protonmail.com>, Sean Anderson <seanga2@gmail.com>, u-boot@lists.denx.de, uboot-snps-arc@synopsys.com Subject: [PATCH 35/42] mmc: exynos_dw_mmc: Use CONFIG_IS_ENABLED() to check config options Date: Wed, 22 May 2024 18:31:28 -0500 Message-Id: <20240522233135.26835-36-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522233135.26835-1-semen.protsenko@linaro.org> References: <20240522233135.26835-1-semen.protsenko@linaro.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
mmc: dw_mmc: Enable eMMC on E850-96 board
|
expand
|
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index e416fbe5397a..b7c3b356f0ac 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -28,7 +28,7 @@ /* Quirks */ #define DWMCI_QUIRK_DISABLE_SMU BIT(0) -#ifdef CONFIG_DM_MMC +#if CONFIG_IS_ENABLED(DM_MMC) #include <dm.h> DECLARE_GLOBAL_DATA_PTR; @@ -47,7 +47,7 @@ struct exynos_dwmmc_variant { /* Exynos implmentation specific drver private data */ struct dwmci_exynos_priv_data { -#ifdef CONFIG_DM_MMC +#if CONFIG_IS_ENABLED(DM_MMC) struct dwmci_host host; #endif struct clk clk; @@ -59,7 +59,7 @@ struct dwmci_exynos_priv_data { static struct dwmci_exynos_priv_data *exynos_dwmmc_get_priv( struct dwmci_host *host) { -#ifdef CONFIG_DM_MMC +#if CONFIG_IS_ENABLED(DM_MMC) return container_of(host, struct dwmci_exynos_priv_data, host); #else return host->priv; @@ -231,7 +231,7 @@ static int exynos_dwmci_core_init(struct dwmci_host *host) host->clksel = exynos_dwmci_clksel; host->get_mmc_clk = exynos_dwmci_get_clk; -#ifndef CONFIG_DM_MMC +#if !CONFIG_IS_ENABLED(DM_MMC) /* Add the mmc channel to be registered with mmc core */ if (add_dwmci(host, DWMMC_MAX_FREQ, DWMMC_MIN_FREQ)) { printf("DWMMC%d registration failed\n", host->dev_index); @@ -338,7 +338,7 @@ static int exynos_dwmmc_of_to_plat(struct udevice *dev) return 0; } -#ifdef CONFIG_DM_MMC +#if CONFIG_IS_ENABLED(DM_MMC) static int exynos_dwmmc_probe(struct udevice *dev) { struct exynos_mmc_plat *plat = dev_get_plat(dev);
Use CONFIG_IS_ENABLED() macro to check config options as recommended by checkpatch, instead of checking those with just #ifdef CONFIG_... No functional change. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> --- drivers/mmc/exynos_dw_mmc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)