]> git.baikalelectronics.ru Git - kernel.git/commit
HID: export hid_report_type to uapi
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 2 Sep 2022 13:29:24 +0000 (15:29 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 20 Sep 2022 10:53:32 +0000 (11:53 +0100)
commit2df5072347d423e1b6175fbece15079844cf0e9a
treeaca70019337e7b9ce377c577b9f6ca17264dac77
parent6c1f2013f7a697c34d8d1b28cf32a1e05aeb51ff
HID: export hid_report_type to uapi

When we are dealing with eBPF, we need to have access to the report type.
Currently our implementation differs from the USB standard, making it
impossible for users to know the exact value besides hardcoding it
themselves.

And instead of a blank define, convert it as an enum.

Note that we need to also do change in the ll_driver API, but given
that this will have a wider impact outside of this tree, we leave this
as a TODO for the future.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220902132938.2409206-10-benjamin.tissoires@redhat.com
drivers/hid/hid-core.c
include/linux/hid.h
include/uapi/linux/hid.h