Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: Remove wrong implementation details from pwm_ops's documentation

When .get_state() is called is an implementation detail that
implementors and users shouldn't care about and rely on. Additionally
it's wrong, because with PWM_DEBUG enabled it is called more often.

Just drop the wrong statement.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/611ba758d7e9fb2695e96b23cb7ceeefb6ba8513.1717756902.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
a96d3659 d6f66e29

+1 -3
+1 -3
include/linux/pwm.h
··· 252 252 * @free: optional hook for freeing a PWM 253 253 * @capture: capture and report PWM signal 254 254 * @apply: atomically apply a new PWM config 255 - * @get_state: get the current PWM state. This function is only 256 - * called once per PWM device when the PWM chip is 257 - * registered. 255 + * @get_state: get the current PWM state. 258 256 */ 259 257 struct pwm_ops { 260 258 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);