* [PATCH] pwm: add missing kernel-doc for pwm_chip:cdev
@ 2024-03-28 4:55 Randy Dunlap
2024-03-28 12:10 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2024-03-28 4:55 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Uwe Kleine-König, linux-pwm
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(+)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pwm: add missing kernel-doc for pwm_chip:cdev
2024-03-28 4:55 [PATCH] pwm: add missing kernel-doc for pwm_chip:cdev Randy Dunlap
@ 2024-03-28 12:10 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2024-03-28 12:10 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel, linux-pwm
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
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
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-28 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-28 4:55 [PATCH] pwm: add missing kernel-doc for pwm_chip:cdev Randy Dunlap
2024-03-28 12:10 ` Uwe Kleine-König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.