diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-05-10 16:06:40 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-05-25 18:19:15 +0200 |
commit | e9fdf122cf3442573d811c0cb664d6b5c30b7780 (patch) | |
tree | 613649f025aa137c413777da9ae637331c9070c0 /drivers/pwm/pwm-meson.c | |
parent | pwm: Autodetect default value for of_pwm_n_cells from device tree (diff) | |
download | linux-e9fdf122cf3442573d811c0cb664d6b5c30b7780.tar.xz linux-e9fdf122cf3442573d811c0cb664d6b5c30b7780.zip |
pwm: Simplify all drivers with explicit of_pwm_n_cells = 3
With the previous commit there is no need for the lowlevel driver any
more to specify it it uses two or three cells. So simplify accordingly.
The only non-trival change affects the pwm-rockchip driver: It used to only
support three cells if the hardware supports polarity. Now the default
number depends on the device tree which has to match hardware anyhow
(and if it doesn't the error is just a bit delayed as a PWM handle with
an inverted setting is catched when pwm_apply_state() is called).
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-meson.c')
-rw-r--r-- | drivers/pwm/pwm-meson.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index 9eb060613cb4..595afec53a2d 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -551,8 +551,6 @@ static int meson_pwm_probe(struct platform_device *pdev) meson->chip.dev = &pdev->dev; meson->chip.ops = &meson_pwm_ops; meson->chip.npwm = MESON_NUM_PWMS; - meson->chip.of_xlate = of_pwm_xlate_with_flags; - meson->chip.of_pwm_n_cells = 3; meson->data = of_device_get_match_data(&pdev->dev); |