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

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Aug 5 23:10:05 CEST 2020

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 at gmail.com>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

More information about the U-Boot mailing list