HID: bpf: export hid_hw_output_report as a BPF kfunc
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 15 Mar 2024 14:44:39 +0000 (15:44 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 10 Apr 2024 14:37:14 +0000 (16:37 +0200)
commit5599f80196612efde96dbe6ef18f6ecc0cb4ba19
tree0176fb7c39f14a4f325742deec12adcbf4c38892
parent4171954f56fb6da8cc8ceebf54b78b874278a198
HID: bpf: export hid_hw_output_report as a BPF kfunc

We currently only export hid_hw_raw_request() as a BPF kfunc.
However, some devices require an explicit write on the Output Report
instead of the use of the control channel.

So also export hid_hw_output_report to BPF

Link: https://lore.kernel.org/r/20240315-b4-hid-bpf-new-funcs-v4-2-079c282469d3@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Documentation/hid/hid-bpf.rst
drivers/hid/bpf/hid_bpf_dispatch.c
drivers/hid/hid-core.c
include/linux/hid_bpf.h