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)
commitdaf11ca2b9f45a1ac6f90af5a61ee4db915110b1
tree8c8110a462eaf385a25f861b28fb9cb42e5e2dda
parentdad74e18f72a852ae40ad7b4246841a1b7e196b5
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