Input: pxspad - fix unused data warning when force feedback not enabled
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 4 Dec 2022 18:08:41 +0000 (18:08 +0000)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 7 Dec 2022 21:29:05 +0000 (13:29 -0800)
commitde4b8d201666b332034f8117b0995a43534b57d3
tree27cbf1811004e0ccdd71a9c2752e10ecec491aed
parent1c89ef672a161bfdb5c72f35b80940ea56c9f935
Input: pxspad - fix unused data warning when force feedback not enabled

The functions using this data were protected with #ifdef
CONFIG_JOYSTICK_PSXPAD_SPI_FF. Do the same for the data used only in
those functions.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20221204180841.2211588-33-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/psxpad-spi.c