pwm: meson: Simplify duplicated per-channel tracking
stable inclusion from stable-v5.10.190 commit b306d09967caa0f2ec1f63280b175b7be49260f3 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b306d09967caa0f2ec1f63280b175b7be49260f3 -------------------------------- [ Upstream commit 5f97f18f ] 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: 87a2cbf0 ("pwm: meson: fix handling of period/duty if greater than UINT_MAX") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment