diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-09-13 14:47:17 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 21:55:56 +0100 |
commit | 99487e42f4da25bef11cb87efaacb0b5753151e5 (patch) | |
tree | a1cd0eec68b265c4dcf8b53ecb20dff677a58c8b | |
parent | 71413bb976cea742def2731cbb0e6ac75e8ffcc8 (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.c | 7 |
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 = { |