u-boot-brain/arch/arm
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
..
cpu image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
dts arm: dts: ls1028a: Add Ethernet switch node and dependencies 2021-02-16 12:38:36 -05:00
include dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
lib Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
mach-aspeed common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-at91 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-bcm283x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-bcmstb
mach-cortina
mach-davinci common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-exynos common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-highbank common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-imx dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
mach-integrator
mach-ipq40xx dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mach-k3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-keystone dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
mach-kirkwood dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
mach-lpc32xx dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() 2021-01-05 12:26:35 -07:00
mach-mediatek common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-meson ARM: mach-meson: select MMC_PWRSEQ config 2021-02-19 15:11:21 +08:00
mach-mvebu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-nexell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-octeontx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-octeontx2 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-omap2 dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
mach-orion5x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-owl common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-qemu qemu: arm: Initialise virtio devices in board_late_init 2020-12-31 14:41:31 +01:00
mach-rmobile Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
mach-rockchip Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
mach-s5pc1xx common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
mach-snapdragon common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-socfpga common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-sti
mach-stm32 treewide: Update email address Patrick Delaunay and Patrice Chotard 2020-12-09 10:57:50 +01:00
mach-stm32mp common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-sunxi dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
mach-tegra common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-u8500 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-uniphier common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-versal common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-versatile
mach-zynq common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-zynqmp common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-zynqmp-r5 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
thumb1/include/asm/proc-armv
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
Kconfig arm: Remove ls2080a_simu board 2021-02-15 10:11:38 -05:00
Kconfig.debug
Makefile arm: octeontx2: Add support for OcteonTX2 SoC platforms 2020-08-25 08:01:16 +02:00