Input: gpio_keys_polled - keep button data constant
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Feb 2016 23:32:14 +0000 (15:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Nov 2016 00:24:29 +0000 (16:24 -0800)
commit0f78ba96bbcf30a78224fe56f8fd72f87915afdd
tree31134d1956f4eb26628cb8c258155eadad7f84f2
parent8dd5e0b364e5b83864cd918475e5a5ef3b352446
Input: gpio_keys_polled - keep button data constant

Commit 633a21d80b4a ("input: gpio_keys_polled: Add support for GPIO
descriptors") placed gpio descriptor into gpio_keys_button structure, which
is supposed to be part of platform data and not modifiable by the driver.
To keep the data constant, let's move the descriptor to
gpio_keys_button_data structure instead.

Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c
drivers/input/keyboard/gpio_keys_polled.c
include/linux/gpio_keys.h