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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:45 +0000 (11:51 +0100)
commit8e2609cbdee283a66a6261278afe57046d810b9f
treef4a3b45546c8073e2bcd38aaf4ee56ffbdb14e4b
parent3e0e4a900fcb1ec96fbf13672132735f99d508e6
HID: nintendo: fix initializer element is not constant error

[ Upstream commit 0b7dd38c1c520b650a889a81919838671b689eb9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-nintendo.c