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 4923AC54E94 for ; Thu, 26 Jan 2023 13:44:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5B8785662; Thu, 26 Jan 2023 14:44:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org 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; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="emvKpAAm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EEB2085695; Thu, 26 Jan 2023 14:44:17 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CD538854F1 for ; Thu, 26 Jan 2023 14:44:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: 83e3fc77-9d7f-11ed-a1d8-005056aba152 Received: from smtp.kpnmail.nl (unknown [10.31.155.40]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 83e3fc77-9d7f-11ed-a1d8-005056aba152; Thu, 26 Jan 2023 14:44:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=tqwYBZn0HubbbZsRU9vHgBqpo1YsLoTW75TPVyyT7ug=; b=emvKpAAm3bl98aVf+WF2pk3bn3yV0uBx79pLhNVoc/YoK7ntWSeXMlALgKKy2KbzgAYjuGZ9Iow+m cWDDYyLEJOyLRi6wPzeAeIV7VA8mliqvMAOMZxUhPBL2CQHFYXC1nkFBNlOmTFMfIupUkSf4/FnAlC TfKh/QthMaq2LKLI= X-KPN-MID: 33|ORMrl545+S5Wh3Avr23GDrcQkCMdpVUpMiPni9gItY3nvqKBMtA730ESo4X+4du WUi24NuO6PJc3A58L9W/W3GYX+3wXFThfW8P7RHXpygk= X-KPN-VerifiedSender: No X-CMASSUN: 33|C3SFgIUTI435ZOgLDkZzMu2Qu+lfTnBQiWshvGydgPy2+9s0o7nK2bfVL8EgZmo vBIfkWP5OtT1UJYwTvX6eCg== X-Originating-IP: 80.61.163.207 Received: from copland.sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) by smtp.xs4all.nl (Halon) with ESMTPSA id 84e1caa0-9d7f-11ed-927c-005056ab7584; Thu, 26 Jan 2023 14:44:13 +0100 (CET) From: Mark Kettenis To: u-boot@lists.denx.de Cc: sjg@chromium.org, Mark Kettenis Subject: [PATCH] serial: s5p: Use IS_ENABLED where appropriate Date: Thu, 26 Jan 2023 14:44:09 +0100 Message-Id: <20230126134409.40175-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.39.0 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 There are no SPL/TPL variants of CONFIG_CLK_EXYNOS and CONFIG_ARCH_APPLE, so switch from CONFIG_IS_ENABLED to IS_ENABLED. Signed-off-by: Mark Kettenis --- drivers/serial/serial_s5p.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c index 4b3947e7f6..7aeb8c0f8c 100644 --- a/drivers/serial/serial_s5p.c +++ b/drivers/serial/serial_s5p.c @@ -14,7 +14,7 @@ #include #include #include -#if !CONFIG_IS_ENABLED(ARCH_APPLE) +#if !IS_ENABLED(CONFIG_ARCH_APPLE) #include #endif #include @@ -116,7 +116,7 @@ int s5p_serial_setbrg(struct udevice *dev, int baudrate) struct s5p_uart *const uart = plat->reg; u32 uclk; -#if CONFIG_IS_ENABLED(CLK_EXYNOS) || CONFIG_IS_ENABLED(ARCH_APPLE) +#if IS_ENABLED(CONFIG_CLK_EXYNOS) || IS_ENABLED(CONFIG_ARCH_APPLE) struct clk clk; u32 ret; @@ -279,7 +279,7 @@ static inline void _debug_uart_init(void) struct s5p_uart *uart = (struct s5p_uart *)CONFIG_VAL(DEBUG_UART_BASE); s5p_serial_init(uart); -#if CONFIG_IS_ENABLED(ARCH_APPLE) +#if IS_ENABLED(CONFIG_ARCH_APPLE) s5p_serial_baud(uart, 4, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE); #else s5p_serial_baud(uart, 1, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE); @@ -290,7 +290,7 @@ static inline void _debug_uart_putc(int ch) { struct s5p_uart *uart = (struct s5p_uart *)CONFIG_VAL(DEBUG_UART_BASE); -#if CONFIG_IS_ENABLED(ARCH_APPLE) +#if IS_ENABLED(CONFIG_ARCH_APPLE) while (readl(&uart->ufstat) & S5L_TX_FIFO_FULL); writel(ch, &uart->utxh); #else -- 2.39.0