]> git.baikalelectronics.ru Git - kernel.git/commit
HID: nintendo: fix -Werror build
authorJiri Kosina <jkosina@suse.cz>
Mon, 1 Nov 2021 14:31:19 +0000 (15:31 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 1 Nov 2021 14:31:19 +0000 (15:31 +0100)
commit0fa92805629223e930bb6497a30f05c79c69d6c3
tree8c8110a462eaf385a25f861b28fb9cb42e5e2dda
parent9a5b3aa720127ea58cc3c39f14fbc3d5d8f71203
HID: nintendo: fix -Werror build

There are a lot of warnings due to unused protocol constants, but I believe
it's good to leave them in the sources for documentation purposes for further
development.

Switch them over from static conts to macros to avoid the warnings.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nintendo.c