linux/Documentation
Uwe Kleine-König 024913dbf9 pwm: Provide pwmchip_alloc() function and a devm variant of it
This function allocates a struct pwm_chip and driver data. Compared to
the status quo the split into pwm_chip and driver data is new, otherwise
it doesn't change anything relevant (yet).

The intention is that after all drivers are switched to use this
allocation function, its possible to add a struct device to struct
pwm_chip to properly track the latter's lifetime without touching all
drivers again. Proper lifetime tracking is a necessary precondition to
introduce character device support for PWMs (that implements atomic
setting and doesn't suffer from the sysfs overhead of the /sys/class/pwm
userspace support).

The new function pwmchip_priv() (obviously?) only works for chips
allocated with pwmchip_alloc().

Link: https://lore.kernel.org/r/9577d6053a5a52536057dc8654ff567181c2da82.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2024-02-15 12:59:15 +01:00
..
2024-01-18 16:22:43 -08:00
2024-01-19 13:36:15 -08:00
2024-01-18 17:57:07 -08:00
2024-01-12 12:38:37 +01:00
2024-01-19 09:31:59 -08:00
2024-01-09 09:07:50 +10:00
2023-12-28 17:37:36 -06:00
2024-01-18 17:57:07 -08:00
2023-12-06 21:07:52 +01:00
2024-01-19 13:30:49 -08:00
2024-01-17 15:05:27 -08:00
2024-01-18 14:35:29 -08:00
2024-01-08 08:10:32 -05:00
2023-12-06 21:07:52 +01:00