tree-wide: replace config_enabled() with IS_ENABLED()
The use of config_enabled() against config options is ambiguous. In practical terms, config_enabled() is equivalent to IS_BUILTIN(), but the author might have used it for the meaning of IS_ENABLED(). Using IS_ENABLED(), IS_BUILTIN(), IS_MODULE() etc. makes the intention clearer. This commit replaces config_enabled() with IS_ENABLED() where possible. This commit is only touching bool config options. I noticed two cases where config_enabled() is used against a tristate option: - config_enabled(CONFIG_HWMON) [ drivers/net/wireless/ath/ath10k/thermal.c ] - config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE) [ drivers/gpu/drm/gma500/opregion.c ] I did not touch them because they should be converted to IS_BUILTIN() in order to keep the logic, but I was not sure it was the authors' intention. Link: http://lkml.kernel.org/r/1465215656-20569-1-git-send-email-yamada.masahiro@socionext.com Signed-off-by:Masahiro Yamada <yamada.masahiro@socionext.com> Ac...
Showing
- arch/mips/include/asm/mips-cm.h 1 addition, 1 deletionarch/mips/include/asm/mips-cm.h
- arch/mips/include/asm/pgtable.h 8 additions, 8 deletionsarch/mips/include/asm/pgtable.h
- arch/mips/include/asm/seccomp.h 2 additions, 2 deletionsarch/mips/include/asm/seccomp.h
- arch/mips/include/asm/signal.h 2 additions, 2 deletionsarch/mips/include/asm/signal.h
- arch/mips/include/asm/syscall.h 1 addition, 1 deletionarch/mips/include/asm/syscall.h
- arch/mips/include/asm/uaccess.h 1 addition, 1 deletionarch/mips/include/asm/uaccess.h
- arch/mips/jz4740/setup.c 1 addition, 1 deletionarch/mips/jz4740/setup.c
- arch/mips/kernel/cpu-bugs64.c 3 additions, 3 deletionsarch/mips/kernel/cpu-bugs64.c
- arch/mips/kernel/elf.c 2 additions, 2 deletionsarch/mips/kernel/elf.c
- arch/mips/kernel/mips-cm.c 1 addition, 1 deletionarch/mips/kernel/mips-cm.c
- arch/mips/kernel/mips-r2-to-r6-emul.c 17 additions, 17 deletionsarch/mips/kernel/mips-r2-to-r6-emul.c
- arch/mips/kernel/pm-cps.c 2 additions, 2 deletionsarch/mips/kernel/pm-cps.c
- arch/mips/kernel/signal.c 5 additions, 5 deletionsarch/mips/kernel/signal.c
- arch/mips/kernel/smp-cps.c 2 additions, 2 deletionsarch/mips/kernel/smp-cps.c
- arch/mips/kernel/unaligned.c 5 additions, 5 deletionsarch/mips/kernel/unaligned.c
- arch/mips/math-emu/cp1emu.c 3 additions, 3 deletionsarch/mips/math-emu/cp1emu.c
- arch/mips/mm/tlbex.c 5 additions, 5 deletionsarch/mips/mm/tlbex.c
- arch/mips/mti-malta/malta-dtshim.c 2 additions, 2 deletionsarch/mips/mti-malta/malta-dtshim.c
- arch/mips/mti-malta/malta-memory.c 1 addition, 1 deletionarch/mips/mti-malta/malta-memory.c
- arch/mips/mti-malta/malta-setup.c 1 addition, 1 deletionarch/mips/mti-malta/malta-setup.c
Please register or sign in to comment