commit | 955c95ddbaa25154fc3e2ade9c1fbe0ba66a8d73 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Wed Mar 10 21:02:18 2021 -0500 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Thu Apr 08 15:37:27 2021 +0800 |
tree | 03232bece4cbfcabd99efb062002c5e939954aea | |
parent | a202a3cd3a9d5358a2597e071fc866e9d27ac44a [diff] |
wdt: dw: Switch to if(CONFIG()) instead of using #if This is preferred over #if because the compiler can check syntax even if the feature is disabled. This cannot be used for CONFIG_CLK because CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>