From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1994C433EF for ; Sun, 26 Sep 2021 18:43:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1ADE561183 for ; Sun, 26 Sep 2021 18:43:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1ADE561183 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B22BC83632; Sun, 26 Sep 2021 20:42:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="dkDBckdV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 62A8A835FA; Sun, 26 Sep 2021 20:41:14 +0200 (CEST) Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) (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 1B2C0835F1 for ; Sun, 26 Sep 2021 20:41:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-vk1-xa2b.google.com with SMTP id b67so6058514vkb.13 for ; Sun, 26 Sep 2021 11:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=hm1q2xISiXXOAzHYuhIyYKuF6NKiiTDxq982QcaA2wU=; b=dkDBckdVvRNWL1TI+AkhuwpaJm+DUMBqRvDskH3yNSAex1qOPI9Gxx9oJz5OZuk75L XZIINoFRPDrK7AYepxCbOGewfaTAbGIRD3uzJ7IPPkzxiTXkFjtl4TsVfkSmRRMWwK7k pI6SZrQfHjvCp3Kt6GIvXxMjfjuI1utE4gpIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=hm1q2xISiXXOAzHYuhIyYKuF6NKiiTDxq982QcaA2wU=; b=oJ0HdwXZseK/Ms7+elVKZnOtxehCCc/Mub4dAN4v8fv4Txh5U1KlMSOAwD/pfIrD5U oZHUzci5QBOU2GALwF1a8k2Ghbcl06ilDeGVrKvWYaboBI2wCXdvVXnta8AOpqz4+Og+ v2R5pH3F9eUbJ9ZcY94i7+Q53nJaEsBoSw1AMxTbN39sejLozX4ALUVWt9rf5q8EvHSF NBY21oaoAFHdE40OArPZn3fJ+j3xcUs7lSuOPxbyvyLG/pfh+nlobIpoilnlmILAu5Md 8bsBn1sNz46LVEu0y2tpGzNW7RgybiWDXvP6O443oFFqayHJW3kQO0aOdOwpKSPAga0y 05pQ== X-Gm-Message-State: AOAM531e6yJIux+0+WfvnLZc2Tc4y04zivTuG0kwBhhFcyV0l/Xrn4aO 8rZaKBw7U95IeFo/4Y4j1uoi+gyWEZ75t1APGq1c/A== X-Google-Smtp-Source: ABdhPJyTyWf8AIDCsOk/iRtcaZh0xKHOeDBW9CovYlvLGMHxVVvfvrOGidI0N9VqivQVHcUGfRQZSt171eVoML8+ttw= X-Received: by 2002:a1f:1841:: with SMTP id 62mr13699240vky.26.1632681664575; Sun, 26 Sep 2021 11:41:04 -0700 (PDT) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Sun, 26 Sep 2021 18:40:26 +0000 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20210807132413.3513724-7-sjg@chromium.org> References: <20210807132413.3513724-7-sjg@chromium.org> <20210807132413.3513724-1-sjg@chromium.org> Date: Sun, 26 Sep 2021 18:40:26 +0000 X-Google-Sender-Auth: pW-AhTZoG582Y634ccMkXH_A4XA Message-ID: Subject: Re: [PATCH 06/12] treewide: Try to avoid the preprocessor with OF_REAL To: Simon Glass Cc: Tom Rini , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Convert some of these occurences to C code, where it is easy to do. This should help encourage this approach to be used in new code. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/p2sb.c | 20 ++++---- doc/develop/driver-model/of-plat.rst | 6 +-- drivers/clk/clk_fixed_factor.c | 18 ++++---- drivers/clk/clk_fixed_rate.c | 7 +-- drivers/clk/rockchip/clk_rk3188.c | 8 ++-- drivers/clk/rockchip/clk_rk3288.c | 8 ++-- drivers/clk/rockchip/clk_rk3368.c | 8 ++-- drivers/clk/rockchip/clk_rk3399.c | 18 ++++---- drivers/misc/p2sb-uclass.c | 20 ++++---- drivers/mmc/fsl_esdhc_imx.c | 17 +++---- drivers/mmc/ftsdc010_mci.c | 33 +++++++------- drivers/mmc/rockchip_dw_mmc.c | 6 ++- drivers/mmc/rockchip_sdhci.c | 12 ++--- drivers/ram/rockchip/dmc-rk3368.c | 12 ++--- drivers/ram/rockchip/sdram_rk3188.c | 5 +- drivers/ram/rockchip/sdram_rk322x.c | 5 +- drivers/ram/rockchip/sdram_rk3288.c | 5 +- drivers/ram/rockchip/sdram_rk3399.c | 5 +- drivers/spi/rk_spi.c | 36 +++++++-------- drivers/spi/spi-uclass.c | 8 ++-- drivers/timer/rockchip_timer.c | 16 +++---- drivers/timer/timer-uclass.c | 68 ++++++++++++++-------------- 22 files changed, 176 insertions(+), 165 deletions(-) Applied to u-boot-dm/next, thanks!