[PATCH v3 1/7] wdt: dw: Switch to using fls for log2

Simon Glass sjg at chromium.org
Mon Sep 7 03:43:42 CEST 2020


On Tue, 1 Sep 2020 at 14:08, Sean Anderson <seanga2 at gmail.com> wrote:
>
> log_2_n_round_up is only found in arm. fls performs the same job and is
> generic.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> (no changes since v2)
>
> Changes in v2:
> - Fix fls being off-by-one when compared to log_2_n_round_up
>
>  drivers/watchdog/designware_wdt.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list