diff mbox series

pwm: add missing kernel-doc for pwm_chip:cdev

Message ID 20240328045515.15874-1-rdunlap@infradead.org
State Accepted
Headers show
Series pwm: add missing kernel-doc for pwm_chip:cdev | expand

Commit Message

Randy Dunlap March 28, 2024, 4:55 a.m. UTC
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'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: linux-pwm@vger.kernel.org

 include/linux/pwm.h |    1 +
 1 file changed, 1 insertion(+)

Comments

Uwe Kleine-König March 28, 2024, 12:10 p.m. UTC | #1
Hello Randy,

On Wed, Mar 27, 2024 at 09:55:13PM -0700, Randy Dunlap wrote:
> 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'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

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
diff mbox series

Patch

diff -- a/include/linux/pwm.h b/include/linux/pwm.h
--- 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