[PATCH 1/2] treewide: Fix wrong CONFIG_IS_ENABLED() handling

Simon Glass sjg at chromium.org
Mon Oct 5 03:52:17 CEST 2020


On Wed, 30 Sep 2020 at 05:46, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>
> CONFIG_IS_ENABLED() takes the kconfig name without the CONFIG_ prefix,
> e.g. CONFIG_IS_ENABLED(CLK) for CONFIG_CLK. Some of these were being
> fixed every now and then, see:
>
>     commit 71ba2cb0d678 ("board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED")
>     commit a5ada25e4213 ("rockchip: clk: fix wrong CONFIG_IS_ENABLED handling")
>     commit 5daf6e56d36c ("common: console: Fix duplicated CONFIG in silent env callback")
>     commit 48bfc31b6484 ("MIPS: bootm: Fix broken boot_env_legacy codepath")
>
> Fix all files found by `git grep "CONFIG_IS_ENABLED(CONFIG"` by running
> ':%s/CONFIG_IS_ENABLED(CONFIG_\(\w+\))/CONFIG_IS_ENABLED(\1)/g' in vim.
>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> ---
>
>  drivers/clk/rockchip/clk_rk3399.c   |  2 +-
>  drivers/spi/nxp_fspi.c              | 10 +++++-----
>  drivers/sysreset/sysreset_mpc83xx.c |  8 ++++----
>  3 files changed, 10 insertions(+), 10 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list