Skip to content
Commit 1e766a04 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Michal Simek
Browse files

timer-uclass: add timer_get_ops() macro



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: default avatarOvidiu Panait <ovpanait@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20221012053656.1492457-1-ovpanait@gmail.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent ba74bcf3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment