summaryrefslogtreecommitdiff
path: root/drivers/md/dm-stats.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-02-04 22:20:43 +0100
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-02-07 21:13:59 +0100
commit5f623835584f1c8d1030666796f40c47a448ce0b (patch)
tree54a6d47de4a9f4b14cfd164d19e90a97bddbfe1c /drivers/md/dm-stats.h
parente25ac87d3f831fed002c34aadddaf4ebb4ea45ec (diff)
pwm: sti: Fix capture for st,pwm-num-chan < st,capture-num-chan
The driver only used the number of pwm channels to set the pwm_chip's npwm member. The result is that if there are more capture channels than PWM channels specified in the device tree, only a part of the capture channel is usable. Fix that by passing the bigger channel count to the pwm framework. This makes it possible that the .apply() callback is called with .hwpwm >= pwm_num_devs, catch that case and return an error code. Fixes: c97267ae831d ("pwm: sti: Add PWM capture callback") Link: https://lore.kernel.org/r/20240204212043.2951852-2-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/md/dm-stats.h')
0 files changed, 0 insertions, 0 deletions