]> git.dujemihanovic.xyz Git - u-boot.git/commit
timer: Return count from timer_ops.get_count
authorSean Anderson <seanga2@gmail.com>
Wed, 7 Oct 2020 18:37:44 +0000 (14:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:53 +0000 (09:54 -0400)
commit8af7bb914f8b2238ea37faa8e59277ba4cb26d37
tree8bb80517f8d547e0b845354e99375938f0f3fcbc
parentaff60aba6c44770fab8f2694ae81bafde6d22998
timer: Return count from timer_ops.get_count

No timer drivers return an error from get_count. Instead of possibly
returning an error, just return the count directly.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
24 files changed:
arch/riscv/lib/andes_plmt.c
arch/riscv/lib/sifive_clint.c
drivers/timer/ag101p_timer.c
drivers/timer/altera_timer.c
drivers/timer/arc_timer.c
drivers/timer/ast_timer.c
drivers/timer/atcpit100_timer.c
drivers/timer/atmel_pit_timer.c
drivers/timer/cadence-ttc.c
drivers/timer/dw-apb-timer.c
drivers/timer/mchp-pit64b-timer.c
drivers/timer/mpc83xx_timer.c
drivers/timer/mtk_timer.c
drivers/timer/nomadik-mtu-timer.c
drivers/timer/omap-timer.c
drivers/timer/ostm_timer.c
drivers/timer/riscv_timer.c
drivers/timer/rockchip_timer.c
drivers/timer/sandbox_timer.c
drivers/timer/sti-timer.c
drivers/timer/stm32_timer.c
drivers/timer/timer-uclass.c
drivers/timer/tsc_timer.c
include/timer.h