diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-06-12 21:59:06 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-06-26 11:39:09 +0200 |
commit | 1064c6bacedd70edfcea6b1b6af529f621e681ae (patch) | |
tree | 6b3d3e692acec2ae5b8f7f51be2f9c04ac64bb47 /sound/parisc | |
parent | 8bbf316453818a47468702f26804e4ced3065c0f (diff) |
pwm: meson: Move pwm_set_chip_data() to meson_pwm_request()
All existing PWM drivers (except pwm-meson and two other ones) call
pwm_set_chip_data() from their pwm_ops.request() callback. Now that we
can access the struct meson_pwm_channel from struct meson_pwm we can do
the same.
Move the call to pwm_set_chip_data() to meson_pwm_request() and drop the
custom meson_pwm_add_channels(). This makes the implementation
consistent with other drivers and makes it slightly more obvious
thatpwm_get_chip_data() cannot be used from pwm_ops.get_state() (because
that's called by the PWM core before pwm_ops.request()).
No functional changes intended.
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'sound/parisc')
0 files changed, 0 insertions, 0 deletions