Files
android_kernel_xiaomi_sm8450/drivers/pwm
Martin Blumenstingl 7e0321629c pwm: meson: Pass struct pwm_device to meson_pwm_calc()
meson_pwm_calc() is the last function that accepts a struct
meson_pwm_channel. meson_pwm_enable(), meson_pwm_disable() and
meson_pwm_apply() for example are all taking a struct pwm_device as
parameter. When they need the struct meson_pwm_channel these functions
simply call pwm_get_chip_data() internally.

Make meson_pwm_calc() consistent with the other functions in the
meson-pwm driver by passing struct pwm_device to it as well. The value
of the "id" parameter is actually pwm->hwpwm, but the driver never read
the "id" parameter, which is why there's no replacement for it in the
new code.

No functional changes.

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>
2019-06-26 11:39:08 +02:00
..
2019-06-25 14:51:43 +02:00
2019-05-09 17:09:54 +02:00
2019-03-04 11:38:52 +01:00
2019-01-16 08:45:33 +01:00
2018-07-12 09:03:06 +02:00
2017-01-19 00:38:17 +01:00
2017-08-21 08:11:24 +02:00
2019-03-20 12:34:14 +01:00