commit | 310bfa737f2cdf6bdcab7637b220a061d2807e99 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Jan 22 05:07:25 2022 -0700 |
committer | Tom Rini <trini@konsulko.com> | Tue Feb 08 23:07:59 2022 -0500 |
tree | a308f4e3a98075dbd003aebc91a9a49f106cd3db | |
parent | 93cb515fe307453ccf8250cf56b3cc1a3dc06a6f [diff] |
kconfig: Update IS_ENABLED() internals The config_enabled() macro currently uses 0 as the default value. Update it to allow any value, so we can pass it something else, such as a non-existent function, to produce a build error if it is not defined. Also tidy up the code style for IS_ENABLED() and drop the unnecessary brackets (the value is a simple 0 or 1). Signed-off-by: Simon Glass <sjg@chromium.org>