aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-sifive.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-05-10 16:06:39 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-05-25 18:18:25 +0200
commit69230cfac3d02c1b8d78aa7bdb29a1710147d49b (patch)
tree942a8aa1913822a1c78ea7c9502f8af1c9f39eb1 /drivers/pwm/pwm-sifive.c
parentpwm: Drop of_pwm_simple_xlate() in favour of of_pwm_xlate_with_flags() (diff)
downloadlinux-dev-69230cfac3d02c1b8d78aa7bdb29a1710147d49b.tar.xz
linux-dev-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-sifive.c')
0 files changed, 0 insertions, 0 deletions