]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: meson: Simplify duplicated per-channel tracking
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 8 Nov 2021 13:46:26 +0000 (14:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:30 +0000 (10:22 +0200)
commitbae3c43a9d256232f8a0a0126080e9d2913dba54
tree4b1c271a3834f62df22b91d5368af6c0ed4af3c8
parent5cb0349cfcdebb0090add17a6345eaa5c43f4844
pwm: meson: Simplify duplicated per-channel tracking

[ Upstream commit 5f97f18feac9bd5a8163b108aee52d783114b36f ]

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@pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Stable-dep-of: 87a2cbf02d77 ("pwm: meson: fix handling of period/duty if greater than UINT_MAX")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-meson.c