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

2022-10-12 Thread Simon Glass
On Tue, 11 Oct 2022 at 23:37, Ovidiu Panait 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. > > Sign

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

2022-10-11 Thread Ovidiu Panait
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 --- drivers/timer/timer-uclass.c | 2 +