diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-14 12:30:49 +0300 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-15 14:37:29 +0300 |
commit | 24003d501f112a9827aa8c59c00e12b2d5cbddf6 (patch) | |
tree | bcc8398eeed394be74ad7eca821cf5ffab20b5b2 /Documentation/driver-api/usb | |
parent | 4e59267c7a20eb1c1ad9106e682cb6a0d8eb3111 (diff) | |
download | linux-24003d501f112a9827aa8c59c00e12b2d5cbddf6.tar.xz |
pwm: Provide wrappers for storing and getting driver private data
These functions are useful to store and query driver private data
depending on the pwm_chip. After struct pwm_chip got its own struct
device, this can make use of dev_get_drvdata() and dev_set_drvdata() on
that device. These functions are required already now to convert
drivers to pwmchip_alloc() which must happen before changing
pwm_chip::dev.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/67514cdf29d29bd8b4ad8d44fac87f6ae6dca1e5.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'Documentation/driver-api/usb')
0 files changed, 0 insertions, 0 deletions