HID: nintendo: fix initializer element is not constant error
authorRyan McClelland <rymcclel@gmail.com>
Thu, 14 Dec 2023 17:25:41 +0000 (09:25 -0800)
committerJiri Kosina <jkosina@suse.com>
Mon, 18 Dec 2023 08:55:18 +0000 (09:55 +0100)
commit0b7dd38c1c520b650a889a81919838671b689eb9
treeca2bb537dc8606494625155d09824c070dd17a88
parentdf83a0df820b9b705e51b9499691b0dafb2f4dcb
HID: nintendo: fix initializer element is not constant error

With gcc-7 builds, an error happens with the controller button values being
defined as const. Change to a define.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312141227.C2h1IzfI-lkp@intel.com/
Signed-off-by: Ryan McClelland <rymcclel@gmail.com>
Reviewed-by: Daniel J. Ogorchock <djogorchock@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-nintendo.c