summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-13 14:47:17 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-05-23 16:02:14 +0100
commitc5a8c4bdd64f75b102114d682b95f8408fd3b555 (patch)
tree05256eba7c3a9d99a1708e56d46ff040a432107a /arch/arm
parentf8991260f9713de9b3e9d07e55035475aac5ead5 (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>
Diffstat (limited to 'arch/arm')
-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 = {