]> git.dujemihanovic.xyz Git - u-boot.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)
commitb9cca2c57a7f3f51dc044030a2f1665e517edb51
tree42172f930f85c5529e8ea9670b8c6e84cd0dc247
parent957a3e549314c3d9c587c91d0b582d73d3d00da7
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