]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Clear chip_data in pwm_put()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 25 Mar 2019 09:49:33 +0000 (10:49 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 9 May 2019 15:09:54 +0000 (17:09 +0200)
commite926b12c611c2095c7976e2ed31753ad6eb5ff1a
treec0c74a6953c3949d1d5007cb4e2eb3c6dca287dd
parent738a1cfec2edb4a6c53ac34fcb29447227dd135e
pwm: Clear chip_data in pwm_put()

After a PWM is disposed by its user the per chip data becomes invalid.
Clear the data in common code instead of the device drivers to get
consistent behaviour. Before this patch only three of nine drivers
cleaned up here.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
drivers/pwm/pwm-berlin.c
drivers/pwm/pwm-pca9685.c
drivers/pwm/pwm-samsung.c