aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2024-02-14 10:32:35 +0100
committerUwe Kleine-König <[email protected]>2024-02-19 11:04:15 +0100
commit0f14aca0dca2492f8a55221f6d9a117924f0ba0e (patch)
tree586ec620eff106bf55a2f323c9068812a6b322e4 /drivers/pwm/pwm-stm32.c
parent792bc12573a3784f008271f650ca0fc381f961db (diff)
pwm: sprd: Rework how the available channels are counted
To be able to convert the sprd driver to pwmchip_alloc() the number of PWM channels must be known when the driver private data is allocated. So make sprd_pwm_clk_init() not take a struct sprd_pwm_chip. On the plus side this allows to drop a member of said driver private data. Reviewed-by: Chunyan Zhang <[email protected]> Link: https://lore.kernel.org/r/682cbbafbfc4982383d66c3871bb9e52d4e03195.1707900770.git.u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions