pwm: sti: Prepare removing pwm_chip from driver data
[ Upstream commit 54272761 ] This prepares the driver for further changes that will drop struct pwm_chip chip from struct sti_pwm_chip. Use the pwm_chip as driver data instead of the sti_pwm_chip to get access to the pwm_chip in sti_pwm_remove() without using pc->chip. Link: https://lore.kernel.org/r/56d53372aacff6871df4d6c6779c9dac94592696.1707900770.git.u.kleine-koenig@pengutronix.de Signed-off-by:Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Stable-dep-of: 5bb0b194 ("pwm: sti: Simplify probe function using devm functions") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading