]> git.baikalelectronics.ru Git - kernel.git/commit
HID: convert defines of HID class requests into a proper enum
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 2 Sep 2022 13:29:25 +0000 (15:29 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 20 Sep 2022 10:53:32 +0000 (11:53 +0100)
commit22a732107d1679d3c09d68ab91f78a60a35b52b3
tree24ec440243fa16f180fa618b473572bf9f20934e
parent2df5072347d423e1b6175fbece15079844cf0e9a
HID: convert defines of HID class requests into a proper enum

This allows to export the type in BTF and so in the automatically
generated vmlinux.h. It will also add some static checks on the users
when we change the ll driver API (see not below).

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-11-benjamin.tissoires@redhat.com
drivers/hid/hid-core.c
include/linux/hid.h
include/uapi/linux/hid.h