aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2019-08-24 15:37:03 +0000
committerThierry Reding <[email protected]>2019-09-20 23:48:54 +0000
commit01ccf903edd65f6421612321648fa5a7f4b7cb10 (patch)
tree7f91aa81ecbdb830970221e6b4b1743d4b594792 /drivers/pwm/pwm-stm32.c
parentpwm: Introduce local struct pwm_chip in pwm_apply_state() (diff)
downloadkernel-01ccf903edd65f6421612321648fa5a7f4b7cb10.tar.gz
kernel-01ccf903edd65f6421612321648fa5a7f4b7cb10.zip
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]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions