>-----Original Message-----
>From: Igor Opaniuk <[email protected]>
>Sent: Tuesday, February 9, 2021 5:23 PM
>To: [email protected]
>Cc: [email protected]; Michael Scott <[email protected]>;
>[email protected]; [email protected]; [email protected]; Igor Opaniuk
><[email protected]>; Heiko Schocher <[email protected]>; Adam Ford
><[email protected]>; Alison Wang <[email protected]>; Andre Przywara
><[email protected]>; Ashish Kumar <[email protected]>; Ashok
>Reddy Soma <[email protected]>; Bhaskar Upadhaya
><[email protected]>; Biwen Li <[email protected]>; Fabio Estevam
><[email protected]>; Faiz Abbas <[email protected]>; Feng Li
><[email protected]>; Frieder Schrempf <[email protected]>; Hans
>de Goede <[email protected]>; Heinrich Schuchardt
><[email protected]>; Holger Brunck <holger.brunck@hitachi-
>powergrids.com>; Z.q. Hou <[email protected]>; Jaehoon Chung
><[email protected]>; Jagan Teki <[email protected]>; Jernej
>Skrabec <[email protected]>; Jonas Smedegaard <[email protected]>; Kuldeep
>Singh <[email protected]>; Lokesh Vutla <[email protected]>; Lukasz
>Majewski <[email protected]>; Madalin Bucur (OSS)
><[email protected]>; Manish Tomar <[email protected]>;
>Marek Szyprowski <[email protected]>; Marek Vasut
><[email protected]>; Masahiro Yamada <[email protected]>; Meenakshi
>Aggarwal <[email protected]>; Michael Walle <[email protected]>;
>Michal Simek <[email protected]>; Mingkai Hu <[email protected]>;
>dl-uboot-imx <[email protected]>; Neil Armstrong
><[email protected]>; Niel Fourie <[email protected]>; Ovidiu Panait
><[email protected]>; Pali Rohár <[email protected]>; Prabhakar
>Kushwaha <[email protected]>; Pramod Kumar
><[email protected]>; Priyanka Jain <[email protected]>; Priyanka
>Singh <[email protected]>; Qiang Zhao <[email protected]>; Rai
>Harninder <[email protected]>; Rajesh Bhagat <[email protected]>;
>Shengzhou Liu <[email protected]>; Stefan Bosch <[email protected]>;
>Stefan Roese <[email protected]>; Stefano Babic <[email protected]>; Sudhanshu Gupta
><[email protected]>; Suman Anna <[email protected]>; Sumit Garg
><[email protected]>; Andy Tang <[email protected]>; Udit Agarwal
><[email protected]>; Vitaly Andrianov <[email protected]>; Vladimir Oltean
><[email protected]>; Wasim Khan <[email protected]>; Wolfgang Denk
><[email protected]>
>Subject: [PATCH v3 3/3] dm: i2c: use CONFIG_IS_ENABLED macro for
>DM_I2C/DM_I2C_GPIO
>
>From: Igor Opaniuk <[email protected]>
>
>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 <[email protected]>
>Reviewed-by: Simon Glass <[email protected]>
>Signed-off-by: Igor Opaniuk <[email protected]>
>
>---
>
Reviewed-by: Priyanka Jain <[email protected]>

Reply via email to