From: Uwe Kleine-König Date: Fri, 7 Jun 2024 10:42:31 +0000 (+0200) Subject: pwm: Remove wrong implementation details from pwm_ops's documentation X-Git-Tag: v6.11-rc1~211^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96d3659c9437673dbef5c05cba31a3c0b5a0a7b;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/611ba758d7e9fb2695e96b23cb7ceeefb6ba8513.1717756902.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König --- diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 2e225f3b42828..75ad0d2fd9491 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -252,9 +252,7 @@ struct pwm_capture { * @free: optional hook for freeing a PWM * @capture: capture and report PWM signal * @apply: atomically apply a new PWM config - * @get_state: get the current PWM state. This function is only - * called once per PWM device when the PWM chip is - * registered. + * @get_state: get the current PWM state. */ struct pwm_ops { int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);