diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-05-10 16:06:39 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-05-25 18:18:25 +0200 |
commit | 69230cfac3d02c1b8d78aa7bdb29a1710147d49b (patch) | |
tree | 942a8aa1913822a1c78ea7c9502f8af1c9f39eb1 /drivers/pwm/pwm-sun4i.c | |
parent | pwm: Drop of_pwm_simple_xlate() in favour of of_pwm_xlate_with_flags() (diff) | |
download | linux-69230cfac3d02c1b8d78aa7bdb29a1710147d49b.tar.xz linux-69230cfac3d02c1b8d78aa7bdb29a1710147d49b.zip |
pwm: Autodetect default value for of_pwm_n_cells from device tree
This allows to simplify all drivers that use three pwm-cells.
The only ugly side effect is that if a driver specified of_pwm_n_cells = 2
it suddenly supports device trees that use #pwm-cells = <3>. This however
isn't a bad thing because the driver doesn't need explicit support for
three cells as the core handles all the details. Also there is no such
in-tree 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 'drivers/pwm/pwm-sun4i.c')
0 files changed, 0 insertions, 0 deletions