[PATCH 1/3] timer-uclass: add timer_get_ops() macro

Simon Glass sjg at chromium.org
Wed Oct 12 14:59:29 CEST 2022


On Tue, 11 Oct 2022 at 23:37, Ovidiu Panait <ovpanait at gmail.com> wrote:
>
> Align timer uclass with the other subsystems and provide a timer_get_ops()
> convenience macro.
>
> Using this instead of the generic device_get_ops() also prevents
> -Wdiscarded-qualifiers warnings when used with non-const variables.
>
> Signed-off-by: Ovidiu Panait <ovpanait at gmail.com>
> ---
>
>  drivers/timer/timer-uclass.c | 2 +-
>  include/timer.h              | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)

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


More information about the U-Boot mailing list