summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-04-08 18:22:38 +0300
committerThierry Reding <thierry.reding@gmail.com>2022-04-22 19:42:53 +0300
commit5e3b07ca5cc78cd4a987e78446849e41288d87cb (patch)
tree5267329a50f30417a3cca03a7a519b0e1037216a /scripts/gdb/linux/proc.py
parentb3c4af8507a052c231084d7e2c1cc5fa5a8c245a (diff)
downloadlinux-5e3b07ca5cc78cd4a987e78446849e41288d87cb.tar.xz
pwm: lp3943: Fix duty calculation in case period was clamped
The hardware only supports periods <= 1.6 ms and if a bigger period is requested it is clamped to 1.6 ms. In this case duty_cycle might be bigger than 1.6 ms and then the duty cycle register is written with a value bigger than LP3943_MAX_DUTY. So clamp duty_cycle accordingly. Fixes: af66b3c0934e ("pwm: Add LP3943 PWM driver") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions