diff options
| author | Uwe Kleine-König <[email protected]> | 2024-02-14 09:32:35 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-02-19 10:04:15 +0000 |
| commit | 0f14aca0dca2492f8a55221f6d9a117924f0ba0e (patch) | |
| tree | 586ec620eff106bf55a2f323c9068812a6b322e4 /drivers/pwm/pwm-stm32.c | |
| parent | pwm: spear: Make use of devm_pwmchip_alloc() function (diff) | |
| download | kernel-0f14aca0dca2492f8a55221f6d9a117924f0ba0e.tar.gz kernel-0f14aca0dca2492f8a55221f6d9a117924f0ba0e.zip | |
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
