pwm: Add a struct device to struct pwm_chip
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 17 Mar 2024 10:40:36 +0000 (11:40 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 26 Apr 2024 19:29:17 +0000 (21:29 +0200)
commit4c56b1434b814899c42a9d9f43d8265371282cd0
tree7ab409255b555e817cdfd35e73ac61250f2c1c82
parentee37bf50749f06b29394d7ba8a85b47f023b61e2
pwm: Add a struct device to struct pwm_chip

This replaces the formerly dynamically allocated struct device. This
allows to additionally use it to track the lifetime of the struct
pwm_chip. Otherwise the new struct device provides the same sysfs API as
was provided by the dynamic device before.

Link: https://lore.kernel.org/r/35c65ea7f6de789a568ff39d7b6b4ce80de4b7dc.1710670958.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/pwm/core.c
include/linux/pwm.h