diff options
| author | Uwe Kleine-König <[email protected]> | 2024-02-14 09:31:18 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-02-15 11:59:21 +0000 |
| commit | 452be9421eda39cfa13c2ace430c940ec60995b7 (patch) | |
| tree | a80a0e1011860386b71ca2d4b683169a5fd46868 /drivers/pwm/pwm-dwc.c | |
| parent | pwm: cros-ec: Make use of pwmchip_parent() accessor (diff) | |
| download | kernel-452be9421eda39cfa13c2ace430c940ec60995b7.tar.gz kernel-452be9421eda39cfa13c2ace430c940ec60995b7.zip | |
pwm: cros-ec: Make use of devm_pwmchip_alloc() function
This prepares the pwm-cros-ec driver to further changes of the pwm core
outlined in the commit introducing devm_pwmchip_alloc(). There is no
intended semantical change and the driver should behave as before.
The probe function had to be changed a bit because the number of PWMs
must be determined before allocation of the pwm_chip and its private
data now.
Reviewed-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/b0afe9e25340f0a274ff3806687cf37a6cc31557.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-dwc.c')
0 files changed, 0 insertions, 0 deletions
