diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-03-17 11:40:33 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-04-26 21:29:17 +0200 |
commit | b40ac0e176bf2c83c78cf72fd64a42be2f9b9638 (patch) | |
tree | fdf68f5e1a21c2d248236df5ad7a164fb37ec988 /include/linux/nfsacl.h | |
parent | 7db42aa2b629de0a103f603f41c5b0929c66ccda (diff) |
pwm: Give some sysfs related variables and functions better names
The code handling the sysfs API uses "child" and "parent" to refer to
the devices corresponding to a struct pwm or a struct pwm_chip
respectively.
Other parts of the pwm core use "parent" to refer to the parent device of
a struct pwm_chip.
So rename "child" to "pwm_dev" and "parent" to "pwmchip_dev" which
better explains the semantic. Also two functions are changed to match
the new names:
child_to_pwm_export() -> pwmexport_from_dev()
child_to_pwm_device() -> pwm_from_dev()
(which have the additional advantage to start with "pwm" which gives the
right scope). Additionally introduce a wrapper for dev_get_drvdata() to
convert a pwmchip_dev to the respective pwm_chip.
Link: https://lore.kernel.org/r/9cc05aceeae2f06ecb850bccb15ba821e768c183.1710670958.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'include/linux/nfsacl.h')
0 files changed, 0 insertions, 0 deletions