pwm: meson: Unify the parameter list of meson_pwm_{enable, disable}
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Wed, 12 Jun 2019 19:58:58 +0000 (21:58 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 26 Jun 2019 09:39:06 +0000 (11:39 +0200)
commit084f137600f436819323adc56da8cd8df87a68b9
tree3ec3c2a3a89e10ed5fbe57c3f457a7c064cfc58d
parent6580fd173070a3a494d94b40d7ca5e5a815fe29a
pwm: meson: Unify the parameter list of meson_pwm_{enable, disable}

This is a preparation for a future cleanup. Pass struct pwm_device
instead of passing the individual values required by each function as
these can be obtained for each struct pwm_device instance.

As a nice side-effect the driver now uses "switch (pwm->hwpwm)"
everywhere. Before some functions used "switch (id)" while others used
"switch (pwm->hwpwm)".

No functional changes.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-meson.c