Skip to content

Commit 260ffc9

Browse files
author
Benjamin Tissoires
committed
HID: bpf: doc fixes for hid_hw_request() hooks
We had the following errors while doing make htmldocs: Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:144: ERROR: Unexpected indentation. Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:145: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:147: ERROR: Unexpected indentation. Reported-by: Stephen Rothwell <[email protected]> Fixes: 8bd0488 ("HID: bpf: add HID-BPF hooks for hid_hw_raw_requests") Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 762ced1 commit 260ffc9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

include/linux/hid_bpf.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,15 @@ struct hid_bpf_ops {
139139
*
140140
* ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
141141
* ``reportnum``: the report number, as in hid_hw_raw_request()
142+
*
142143
* ``rtype``: the report type (``HID_INPUT_REPORT``, ``HID_FEATURE_REPORT``,
143-
* ``HID_OUTPUT_REPORT``)
144+
* ``HID_OUTPUT_REPORT``)
145+
*
144146
* ``reqtype``: the request
147+
*
145148
* ``source``: a u64 referring to a uniq but identifiable source. If %0, the
146-
* kernel itself emitted that call. For hidraw, ``source`` is set
147-
* to the associated ``struct file *``.
149+
* kernel itself emitted that call. For hidraw, ``source`` is set
150+
* to the associated ``struct file *``.
148151
*
149152
* Return: %0 to keep processing the request by hid-core; any other value
150153
* stops hid-core from processing that event. A positive value should be
@@ -153,7 +156,7 @@ struct hid_bpf_ops {
153156
*/
154157
int (*hid_hw_request)(struct hid_bpf_ctx *ctx, unsigned char reportnum,
155158
enum hid_report_type rtype, enum hid_class_request reqtype,
156-
__u64 source);
159+
u64 source);
157160

158161
/**
159162
* @hid_hw_output_report: called whenever a hid_hw_output_report() call is emitted

0 commit comments

Comments
 (0)