[PATCH 3/4] pwm: meson: Simplify duplicated per-channel tracking

Martin Blumenstingl martin.blumenstingl at googlemail.com
Sat Nov 20 15:35:37 PST 2021


On Mon, Nov 8, 2021 at 2:46 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> The driver tracks per-channel data via struct pwm_device::chip_data and
> struct meson_pwm::channels[]. The latter holds the actual data, the former
> is only a pointer to the latter. So simplify by using struct
> meson_pwm::channels[] consistently.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>

note to self: this patch is complete because the first patch in this
series already removes one usage of pwm_get_chip_data



More information about the linux-amlogic mailing list