[PATCH] pwm: Rename pwm_get_state() to better reflect its semantic
Roy Im
roy.im.opensource at diasemi.com
Tue Apr 6 14:22:49 BST 2021
On Tue, 06 Apr 2021, Uwe Kleine-König <u.kleine-koenig at pengutronix.de> wrote:
> Given that lowlevel drivers usually cannot implement exactly what a
> consumer requests with pwm_apply_state() there is some
> rounding involved.
>
> pwm_get_state() traditionally returned the setting that was requested
> most recently by the consumer (opposed to what was
> actually implemented in hardware in reply to the last request).
> To make this semantic obvious rename the function.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> drivers/input/misc/da7280.c | 2 +-
Acked-by: Roy Im <roy.im.opensource at diasemi.com>
More information about the linux-arm-kernel
mailing list