mirror of https://gitee.com/openkylin/linux.git
97f2645f35
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> Acked-by: Kees Cook <keescook@chromium.org> Cc: Stas Sergeev <stsp@list.ru> Cc: Matt Redfearn <matt.redfearn@imgtec.com> Cc: Joshua Kinard <kumba@gentoo.org> Cc: Jiri Slaby <jslaby@suse.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Borislav Petkov <bp@suse.de> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: "Dmitry V. Levin" <ldv@altlinux.org> Cc: yu-cheng yu <yu-cheng.yu@intel.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: Brian Gerst <brgerst@gmail.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Will Drewry <wad@chromium.org> Cc: Nikolay Martynov <mar.kolya@gmail.com> Cc: Huacai Chen <chenhc@lemote.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> Cc: Rafal Milecki <zajec5@gmail.com> Cc: James Cowgill <James.Cowgill@imgtec.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Alex Smith <alex.smith@imgtec.com> Cc: Adam Buchbinder <adam.buchbinder@gmail.com> Cc: Qais Yousef <qais.yousef@imgtec.com> Cc: Jiang Liu <jiang.liu@linux.intel.com> Cc: Mikko Rapeli <mikko.rapeli@iki.fi> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Brian Norris <computersforpeace@gmail.com> Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com> Cc: "Luis R. Rodriguez" <mcgrof@do-not-panic.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Ingo Molnar <mingo@redhat.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Roland McGrath <roland@hack.frob.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: Kalle Valo <kvalo@qca.qualcomm.com> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Tony Wu <tung7970@gmail.com> Cc: Huaitong Han <huaitong.han@intel.com> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Juergen Gross <jgross@suse.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andrea Gelmini <andrea.gelmini@gelma.net> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Rabin Vincent <rabin@rab.in> Cc: "Maciej W. Rozycki" <macro@imgtec.com> Cc: David Daney <david.daney@cavium.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ahb.c | ||
ani.c | ||
ani.h | ||
antenna.c | ||
ar953x_initvals.h | ||
ar955x_1p0_initvals.h | ||
ar956x_initvals.h | ||
ar5008_initvals.h | ||
ar5008_phy.c | ||
ar9001_initvals.h | ||
ar9002_calib.c | ||
ar9002_hw.c | ||
ar9002_initvals.h | ||
ar9002_mac.c | ||
ar9002_phy.c | ||
ar9002_phy.h | ||
ar9003_2p2_initvals.h | ||
ar9003_aic.c | ||
ar9003_aic.h | ||
ar9003_buffalo_initvals.h | ||
ar9003_calib.c | ||
ar9003_eeprom.c | ||
ar9003_eeprom.h | ||
ar9003_hw.c | ||
ar9003_mac.c | ||
ar9003_mac.h | ||
ar9003_mci.c | ||
ar9003_mci.h | ||
ar9003_paprd.c | ||
ar9003_phy.c | ||
ar9003_phy.h | ||
ar9003_rtt.c | ||
ar9003_rtt.h | ||
ar9003_wow.c | ||
ar9330_1p1_initvals.h | ||
ar9330_1p2_initvals.h | ||
ar9340_initvals.h | ||
ar9462_2p0_initvals.h | ||
ar9462_2p1_initvals.h | ||
ar9485_initvals.h | ||
ar9565_1p0_initvals.h | ||
ar9565_1p1_initvals.h | ||
ar9580_1p0_initvals.h | ||
ath9k.h | ||
beacon.c | ||
btcoex.c | ||
btcoex.h | ||
calib.c | ||
calib.h | ||
channel.c | ||
common-beacon.c | ||
common-beacon.h | ||
common-debug.c | ||
common-debug.h | ||
common-init.c | ||
common-init.h | ||
common-spectral.c | ||
common-spectral.h | ||
common.c | ||
common.h | ||
debug.c | ||
debug.h | ||
debug_sta.c | ||
dfs.c | ||
dfs.h | ||
dfs_debug.c | ||
dfs_debug.h | ||
dynack.c | ||
dynack.h | ||
eeprom.c | ||
eeprom.h | ||
eeprom_4k.c | ||
eeprom_9287.c | ||
eeprom_def.c | ||
gpio.c | ||
hif_usb.c | ||
hif_usb.h | ||
htc.h | ||
htc_drv_beacon.c | ||
htc_drv_debug.c | ||
htc_drv_gpio.c | ||
htc_drv_init.c | ||
htc_drv_main.c | ||
htc_drv_txrx.c | ||
htc_hst.c | ||
htc_hst.h | ||
hw-ops.h | ||
hw.c | ||
hw.h | ||
init.c | ||
link.c | ||
mac.c | ||
mac.h | ||
main.c | ||
mci.c | ||
mci.h | ||
pci.c | ||
phy.h | ||
recv.c | ||
reg.h | ||
reg_aic.h | ||
reg_mci.h | ||
reg_wow.h | ||
rng.c | ||
tx99.c | ||
wmi.c | ||
wmi.h | ||
wow.c | ||
xmit.c |