[PATCH 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if

Heinrich Schuchardt
2020-08-05T21:10:05Z

On 8/5/20 9:14 PM, Sean Anderson wrote:
> 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>