summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-13 14:47:17 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-12 21:55:56 +0100
commit99487e42f4da25bef11cb87efaacb0b5753151e5 (patch)
treea1cd0eec68b265c4dcf8b53ecb20dff677a58c8b
parent71413bb976cea742def2731cbb0e6ac75e8ffcc8 (diff)
ARM: sa1100/simpad: use named initialisers for power buttom.
Use named initialisers for the gpio_keys_button table. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/mach-sa1100/simpad.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-sa1100/simpad.c b/arch/arm/mach-sa1100/simpad.c
index 1bafb234a7c3..a7069d97e6f4 100644
--- a/arch/arm/mach-sa1100/simpad.c
+++ b/arch/arm/mach-sa1100/simpad.c
@@ -259,7 +259,12 @@ static void simpad_power_off(void)
*/
static struct gpio_keys_button simpad_button_table[] = {
- { KEY_POWER, IRQ_GPIO_POWER_BUTTON, 1, "power button" },
+ {
+ .code = KEY_POWER,
+ .gpio = IRQ_GPIO_POWER_BUTTON,
+ .active_low = 1,
+ .desc = "power button",
+ },
};
static struct gpio_keys_platform_data simpad_keys_data = {