Skip to contentSkip to conversation

pwm: add missing kernel-doc for pwm_chip:cdev

PATCH In review Randy Dunlap 2 participants 2 messages Mar 28, 2024 PWM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: add missing kernel-doc for pwm_chip:cdev

Add a kernel-doc description of @cdev to prevent a build warning:

include/linux/pwm.h:308: warning: Function parameter or struct member 'cdev' not described in 'pwm_chip'

---
Cc: Uwe Kleine-König <[email protected]>
Cc: [email protected]

 include/linux/pwm.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/pwm.h +1 -0
diff -- a/include/linux/pwm.h b/include/linux/pwm.h
@@ -268,6 +268,7 @@ struct pwm_ops {
 /**
  * struct pwm_chip - abstract a PWM controller
  * @dev: device providing the PWMs
+ * @cdev: &struct cdev for this device
  * @ops: callbacks for this PWM controller
  * @owner: module providing this chip
  * @id: unique number of this PWM chip
#1 lore raw

Hello Randy,

Quoted 5 lines · Randy Dunlap

Add a kernel-doc description of @cdev to prevent a build warning:

include/linux/pwm.h:308: warning: Function parameter or struct member 'cdev' not described in 'pwm_chip'

Thanks for the fix, I applied it to my for-next branch at
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next .

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |