u-boot-brain/board/freescale
Igor Opaniuk 2147a16983 dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO
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@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2021-02-21 06:08:00 +01:00
..
common dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
corenet_ds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mm_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mn_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mp_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mq_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8qm_mek common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8qxp_mek common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imxrt1020-evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imxrt1050-evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1012afrdm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1012aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1012ardb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1021aiot common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1021aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1021atsn common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1021atwr dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1028a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1043aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1043ardb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1046afrwy dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1046aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1046ardb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1088a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls2080aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls2080ardb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
lx2160a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
m547xevb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m548xevb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5208evbe common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5235evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5249evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5253demo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5272c3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5275evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5282evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5329evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5373evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m52277evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m53017evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54418twr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54451evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54455evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc832xemds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc837xemds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc837xerdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8308rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8313erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8315erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8323erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8349emds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8349itx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8541cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8548cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8555cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8568mds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8569mds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6memcal common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6qarm2 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sabreauto common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6slevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sllevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sxsabreauto common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sxsabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6ul_14x14_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6ullevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7dsabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7ulp_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx23evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx25pdk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx28evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx51evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53ard common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53loco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53smd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
p1_p2_rdb_pc dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
p1010rdb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
p2041rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qemu-ppce500 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
s32v234evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t4rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t102xrdb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
t104xrdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t208xqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
t208xrdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
vf610twr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00