Skip to contentSkip to conversation

HID: address kernel-doc warnings

PATCH Applied Lukas Bulwahn 2 participants 2 messages Dec 16, 2021 – Jan 6, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: address kernel-doc warnings

The command ./scripts/kernel-doc -none include/linux/hid.h reports:

include/linux/hid.h:818: warning: cannot understand function prototype: 'struct hid_ll_driver ' include/linux/hid.h:1135: warning: expecting prototype for hid_may_wakeup(). Prototype was for hid_hw_may_wakeup() instead

Address those kernel-doc warnings.

---
 include/linux/hid.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/hid.h +2 -2
index 3d83e7022f6c..7487b0586fe6 100644
@@ -800,7 +800,7 @@ struct hid_driver {
 	container_of(pdrv, struct hid_driver, driver)
 
 /**
- * hid_ll_driver - low level driver callbacks
+ * struct hid_ll_driver - low level driver callbacks
  * @start: called on probe to start the device
  * @stop: called on remove
  * @open: called by input layer on open
@@ -1127,7 +1127,7 @@ static inline int hid_hw_idle(struct hid_device *hdev, int report, int idle,
 }
 
 /**
- * hid_may_wakeup - return if the hid device may act as a wakeup source during system-suspend
+ * hid_hw_may_wakeup - return if the hid device may act as a wakeup source during system-suspend
  *
  * @hdev: hid device
  */
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Lukas Bulwahn

The command ./scripts/kernel-doc -none include/linux/hid.h reports:

include/linux/hid.h:818: warning: cannot understand function prototype: 'struct hid_ll_driver ' include/linux/hid.h:1135: warning: expecting prototype for hid_may_wakeup(). Prototype was for hid_hw_may_wakeup() instead

Address those kernel-doc warnings.

Applied, thanks Lukas.

Signature · 2 lines
Jiri Kosina
SUSE Labs