u-boot/drivers/power/pmic
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
..
act8846.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
as3722.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
as3722_gpio.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
bd71837.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
da9063.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fan53555.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
i2c_pmic_emul.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
Kconfig power: pmic: add driver for Monolithic Power mp5416 2021-01-18 15:23:06 -05:00
lp873x.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
lp87565.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile power: pmic: add driver for Monolithic Power mp5416 2021-01-18 15:23:06 -05:00
max8997.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
max8998.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
max77686.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mc34708.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mp5416.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
muic_max8997.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
palmas.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pca9450.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pfuze100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pm8916.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pmic-uclass.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pmic_hi6553.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pmic_ltc3676.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_max8997.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pmic_max8998.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_max77696.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_mc34vr500.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_pca9450.c power: pmic_pca9450: fix PCA9450A I2C address 2020-07-16 11:20:14 +02:00
pmic_pfuze100.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_pfuze3000.c power: pmic: Let PFUZE3000 see all 256 registers 2018-06-27 09:47:46 +02:00
pmic_tps62362.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
pmic_tps65217.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
pmic_tps65218.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
pmic_tps65910.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
pmic_tps65910_dm.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
rk8xx.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07:00
rn5t567.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s2mps11.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s5m8767.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
stpmic1.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
tps65090.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tps65941.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00