]> Git Repo - linux.git/commit
pwm: Let pwm_get_state() return the last implemented state
authorUwe Kleine-König <[email protected]>
Sat, 24 Aug 2019 15:37:03 +0000 (17:37 +0200)
committerThierry Reding <[email protected]>
Fri, 20 Sep 2019 23:48:54 +0000 (01:48 +0200)
commit01ccf903edd65f6421612321648fa5a7f4b7cb10
tree7f91aa81ecbdb830970221e6b4b1743d4b594792
parentfc3c5512e337bdb8b019883ea9078bbccc00c4e9
pwm: Let pwm_get_state() return the last implemented state

When pwm_apply_state() is called the lowlevel driver usually has to
apply some rounding because the hardware doesn't support nanosecond
resolution. So let pwm_get_state() return the actually implemented state
instead of the last applied one if possible.

Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/core.c
This page took 0.04643 seconds and 4 git commands to generate.