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
..
2021-01-12 10:58:04 +05:30
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2021-01-18 15:23:06 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-28 15:57:58 -04:00
2020-07-29 10:13:41 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2021-02-21 06:08:00 +01:00
2020-05-18 21:19:23 -04:00
2019-01-25 12:12:57 -05:00
2020-12-13 16:51:09 -07:00
2020-09-17 14:40:22 +02:00
2020-12-13 16:51:09 -07:00
2021-01-23 11:30:30 +01:00
2020-04-18 12:54:43 +02:00
2021-02-21 06:08:00 +01:00
2021-02-08 14:01:19 +05:30
2020-08-03 22:19:54 -04:00
2021-01-11 14:59:54 +01:00
2019-07-11 10:58:03 +02:00
2021-01-23 13:40:29 +01:00
2021-01-23 13:40:29 +01:00
2021-01-23 13:40:29 +01:00
2020-05-18 14:54:24 -04:00
2021-01-23 13:40:29 +01:00
2020-07-17 09:30:13 -04:00
2021-01-23 13:40:29 +01:00
2021-01-23 13:40:29 +01:00
2020-07-17 09:30:13 -04:00
2020-08-25 08:01:16 +02:00
2020-08-25 08:01:16 +02:00
2018-12-10 06:09:34 +01:00
2020-05-18 14:54:24 -04:00
2020-05-18 14:54:24 -04:00
2018-05-07 09:34:12 -04:00
2020-07-07 17:11:58 -04:00
2019-11-17 17:23:24 +08:00
2018-05-07 09:34:12 -04:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2020-05-18 14:54:24 -04:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2019-05-08 17:34:12 +08:00
2021-02-02 15:33:42 -05:00
2019-05-08 17:34:12 +08:00
2020-05-18 21:19:23 -04:00
2018-09-25 21:49:18 -04:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2018-05-07 09:34:12 -04:00
2021-02-19 23:28:50 +00:00
2021-02-02 15:33:42 -05:00
2019-06-05 09:16:33 -07:00
2019-06-05 09:16:33 -07:00
2019-06-05 09:16:33 -07:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2019-06-05 09:16:33 -07:00
2020-12-13 16:51:09 -07:00
2020-01-17 17:53:40 -05:00
2020-05-01 11:34:01 -04:00
2018-05-07 09:34:12 -04:00
2021-02-21 06:08:00 +01:00
2019-07-18 11:31:24 -04:00
2021-02-02 15:33:42 -05:00
2020-10-23 09:16:07 -04:00
2021-01-18 15:14:15 -05:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2018-09-10 21:19:33 -04:00
2017-03-18 20:28:01 -04:00
2018-09-25 21:49:18 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2014-01-10 10:10:23 +01:00
2020-04-24 15:17:14 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 14:54:24 -04:00
2020-05-22 15:22:35 +02:00
2020-05-18 14:54:24 -04:00
2018-05-07 09:34:12 -04:00
2020-07-29 10:37:11 -04:00
2014-04-08 00:15:12 +02:00
2021-02-02 15:33:42 -05:00
2021-01-18 15:14:15 -05:00
2020-01-24 11:19:52 -05:00
2020-08-25 08:01:16 +02:00
2019-05-28 13:58:06 -04:00
2018-11-16 13:34:33 -05:00
2016-10-06 20:57:40 -04:00
2020-07-10 14:10:43 -04:00
2020-05-18 14:54:24 -04:00
2020-12-13 16:51:09 -07:00
2021-02-21 06:08:00 +01:00
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2020-05-18 14:54:24 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-05-05 08:48:50 -04:00
2014-01-10 10:10:23 +01:00
2014-06-11 16:27:05 -04:00
2020-05-18 21:19:23 -04:00
2014-06-11 16:27:05 -04:00
2018-05-07 09:34:12 -04:00
2021-02-02 15:33:42 -05:00
2018-05-07 09:34:12 -04:00
2016-10-06 20:57:40 -04:00
2018-05-07 09:34:12 -04:00
2018-09-11 08:32:55 -04:00
2016-12-27 11:24:15 -05:00
2021-01-15 14:36:12 -05:00
2018-09-10 20:48:16 -04:00
2020-01-17 13:27:30 -05:00
2018-05-07 09:34:12 -04:00
2014-01-09 16:08:44 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-08-14 15:18:27 -04:00