]> git.baikalelectronics.ru Git - kernel.git/commit
HID: nintendo: fix unused const warning
authorDaniel J. Ogorchock <djogorchock@gmail.com>
Sat, 28 May 2022 21:23:31 +0000 (17:23 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 8 Jun 2022 09:49:06 +0000 (11:49 +0200)
commit6b35d87e5981942b0ee65a86145bc801fbf97939
tree17de542ac9245b98be0db090c0b2596b28e595b1
parentf26ecac1d8699dd02e921e4029445dffa202ee3c
HID: nintendo: fix unused const warning

JC_RUMBLE_ZERO_AMP_PKT_CNT is only used when force feedback support in
the driver is enabled. Place the declaration in the CONFIG_NINTENDO_FF
ifdef to avoid a warning when compiling without rumble support.

Signed-off-by: Daniel J. Ogorchock <djogorchock@gmail.com>
Reviewed-by: Silvan Jegen <s.jegen@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nintendo.c