[PATCH v3 3/3] dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO
Priyanka Jain
priyanka.jain at nxp.com
Thu Feb 11 11:38:58 CET 2021
>-----Original Message-----
>From: Igor Opaniuk <igor.opaniuk at foundries.io>
>Sent: Tuesday, February 9, 2021 5:23 PM
>To: u-boot at lists.denx.de
>Cc: ricardo at foundries.io; Michael Scott <mike at foundries.io>;
>jorge at foundries.io; sjg at chromium.org; trini at konsulko.com; Igor Opaniuk
><igor.opaniuk at foundries.io>; Heiko Schocher <hs at denx.de>; Adam Ford
><aford173 at gmail.com>; Alison Wang <alison.wang at nxp.com>; Andre Przywara
><andre.przywara at arm.com>; Ashish Kumar <ashish.kumar at nxp.com>; Ashok
>Reddy Soma <ashok.reddy.soma at xilinx.com>; Bhaskar Upadhaya
><bhaskar.upadhaya at nxp.com>; Biwen Li <biwen.li at nxp.com>; Fabio Estevam
><festevam at gmail.com>; Faiz Abbas <faiz_abbas at ti.com>; Feng Li
><feng.li_2 at nxp.com>; Frieder Schrempf <frieder.schrempf at kontron.de>; Hans
>de Goede <hdegoede at redhat.com>; Heinrich Schuchardt
><xypron.glpk at gmx.de>; Holger Brunck <holger.brunck at hitachi-
>powergrids.com>; Z.q. Hou <zhiqiang.hou at nxp.com>; Jaehoon Chung
><jh80.chung at samsung.com>; Jagan Teki <jagan at amarulasolutions.com>; Jernej
>Skrabec <jernej.skrabec at siol.net>; Jonas Smedegaard <dr at jones.dk>; Kuldeep
>Singh <kuldeep.singh at nxp.com>; Lokesh Vutla <lokeshvutla at ti.com>; Lukasz
>Majewski <lukma at denx.de>; Madalin Bucur (OSS)
><madalin.bucur at oss.nxp.com>; Manish Tomar <manish.tomar at nxp.com>;
>Marek Szyprowski <m.szyprowski at samsung.com>; Marek Vasut
><marex at denx.de>; Masahiro Yamada <masahiroy at kernel.org>; Meenakshi
>Aggarwal <meenakshi.aggarwal at nxp.com>; Michael Walle <michael at walle.cc>;
>Michal Simek <michal.simek at xilinx.com>; Mingkai Hu <mingkai.hu at nxp.com>;
>dl-uboot-imx <uboot-imx at nxp.com>; Neil Armstrong
><narmstrong at baylibre.com>; Niel Fourie <lusus at denx.de>; Ovidiu Panait
><ovidiu.panait at windriver.com>; Pali Rohár <pali at kernel.org>; Prabhakar
>Kushwaha <prabhakar.kushwaha at nxp.com>; Pramod Kumar
><pramod.kumar_1 at nxp.com>; Priyanka Jain <priyanka.jain at nxp.com>; Priyanka
>Singh <priyanka.singh at nxp.com>; Qiang Zhao <qiang.zhao at nxp.com>; Rai
>Harninder <harninder.rai at nxp.com>; Rajesh Bhagat <rajesh.bhagat at nxp.com>;
>Shengzhou Liu <shengzhou.liu at nxp.com>; Stefan Bosch <stefan_b at posteo.net>;
>Stefan Roese <sr at denx.de>; Stefano Babic <sbabic at denx.de>; Sudhanshu Gupta
><sudhanshu.gupta at nxp.com>; Suman Anna <s-anna at ti.com>; Sumit Garg
><sumit.garg at nxp.com>; Andy Tang <andy.tang at nxp.com>; Udit Agarwal
><udit.agarwal at nxp.com>; Vitaly Andrianov <vitalya at ti.com>; Vladimir Oltean
><olteanv at gmail.com>; Wasim Khan <wasim.khan at nxp.com>; Wolfgang Denk
><wd at denx.de>
>Subject: [PATCH v3 3/3] dm: i2c: use CONFIG_IS_ENABLED macro for
>DM_I2C/DM_I2C_GPIO
>
>From: Igor Opaniuk <igor.opaniuk at foundries.io>
>
>Use CONFIG_IS_ENABLED() macro, which provides more convenient
>way to check $(SPL)DM_I2C/$(SPL)DM_I2C_GPIO configs
>for both SPL and U-Boot proper.
>
>CONFIG_IS_ENABLED(DM_I2C) expands to:
>- 1 if CONFIG_SPL_BUILD is undefined and CONFIG_DM_I2C is set to 'y',
>- 1 if CONFIG_SPL_BUILD is defined and CONFIG_SPL_DM_I2C is set to 'y',
>- 0 otherwise.
>
>All occurences were replaced automatically using these bash cmds:
>$ find . -type f -exec sed -i
> 's/ifndef CONFIG_DM_I2C/if !CONFIG_IS_ENABLED(DM_I2C)/g' {} +
>$ find . -type f -exec sed -i
> 's/ifdef CONFIG_DM_I2C/if CONFIG_IS_ENABLED(DM_I2C)/g' {} +
>$ find . -type f -exec sed -i
> 's/defined(CONFIG_DM_I2C)/CONFIG_IS_ENABLED(DM_I2C)/g' {} +
>$ find . -type f -exec sed -i
> 's/ifndef CONFIG_DM_I2C_GPIO/if !CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {}
>+
>$ find . -type f -exec sed -i
> 's/ifdef CONFIG_DM_I2C_GPIO/if CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} +
>$ find . -type f -exec sed -i
> 's/defined(CONFIG_DM_I2C_GPIO)/CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {}
>+
>
>Reviewed-by: Heiko Schocher <hs at denx.de>
>Reviewed-by: Simon Glass <sjg at chromium.org>
>Signed-off-by: Igor Opaniuk <igor.opaniuk at foundries.io>
>
>---
>
Reviewed-by: Priyanka Jain <priyanka.jain at nxp.com>
More information about the U-Boot
mailing list