]> 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)
commite092ac251312bf96b935df67e8899411e475ea61
tree8c8110a462eaf385a25f861b28fb9cb42e5e2dda
parent6db1050130eacaaf0585d9e9da39cce0c7325dfd
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