Skip to content

Commit 5f94e9c

Browse files
Xiaofei TanJiri Kosina
authored andcommitted
HID: core: fix kerneldoc warnings in hid-core.c
Fix following warnings caused by mismatch bewteen function parameters and comments. drivers/hid/hid-core.c:931: warning: Function parameter or member 'hid' not described in 'hid_parse_report' drivers/hid/hid-core.c:931: warning: Excess function parameter 'device' description in 'hid_parse_report' drivers/hid/hid-core.c:961: warning: Function parameter or member 'hid' not described in 'hid_validate_values' drivers/hid/hid-core.c:961: warning: Excess function parameter 'device' description in 'hid_validate_values' drivers/hid/hid-core.c:1452: warning: Function parameter or member 'report' not described in 'hid_match_report' drivers/hid/hid-core.c:1452: warning: Excess function parameter 'report_type' description in 'hid_match_report' drivers/hid/hid-core.c:2132: warning: Function parameter or member 'drv' not described in 'new_id_store' drivers/hid/hid-core.c:2132: warning: Excess function parameter 'driver' description in 'new_id_store' Signed-off-by: Xiaofei Tan <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 4a6a4c9 commit 5f94e9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/hid/hid-core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ static int hid_scan_report(struct hid_device *hid)
920920
/**
921921
* hid_parse_report - parse device report
922922
*
923-
* @device: hid device
923+
* @hid: hid device
924924
* @start: report start
925925
* @size: report size
926926
*
@@ -945,7 +945,7 @@ static const char * const hid_report_names[] = {
945945
/**
946946
* hid_validate_values - validate existing device report's value indexes
947947
*
948-
* @device: hid device
948+
* @hid: hid device
949949
* @type: which report type to examine
950950
* @id: which report ID to examine (0 for first)
951951
* @field_index: which report field to examine
@@ -1444,7 +1444,7 @@ static int search(__s32 *array, __s32 value, unsigned n)
14441444
* hid_match_report - check if driver's raw_event should be called
14451445
*
14461446
* @hid: hid device
1447-
* @report_type: type to match against
1447+
* @report: hid report to match against
14481448
*
14491449
* compare hid->driver->report_table->report_type to report->type
14501450
*/
@@ -2120,7 +2120,7 @@ struct hid_dynid {
21202120

21212121
/**
21222122
* store_new_id - add a new HID device ID to this driver and re-probe devices
2123-
* @driver: target device driver
2123+
* @drv: target device driver
21242124
* @buf: buffer for scanning device ID data
21252125
* @count: input size
21262126
*

0 commit comments

Comments
 (0)