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)
commitead77b65aef430d3bfe63524c243a60a29eb8d90
treeaca70019337e7b9ce377c577b9f6ca17264dac77
parent1e839143d674603b0bbbc4c513bca35404967dbc
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