]> git.baikalelectronics.ru Git - uboot.git/commit
checkpatch.pl: Make CONFIG_IS_ENABLED(CONFIG_*) an error
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Mon, 5 Oct 2020 06:57:30 +0000 (09:57 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 14 Oct 2020 15:16:34 +0000 (11:16 -0400)
commit42714ee768698875e052f1a1a78a68419b3b9e5c
tree42172f930f85c5529e8ea9670b8c6e84cd0dc247
parentbb423476a8dae63757f4fa1c74721d4cca949515
checkpatch.pl: Make CONFIG_IS_ENABLED(CONFIG_*) an error

CONFIG_IS_ENABLED() takes the kconfig name without the CONFIG_ prefix,
e.g. CONFIG_IS_ENABLED(CLK) for CONFIG_CLK. Make including the prefix
an error in checkpatch.pl so calls in the wrong format aren't
accidentally reintroduced.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/checkpatch.pl
tools/patman/test_checkpatch.py