From 99487e42f4da25bef11cb87efaacb0b5753151e5 Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 13 Sep 2016 14:47:17 +0100 Subject: ARM: sa1100/simpad: use named initialisers for power buttom. Use named initialisers for the gpio_keys_button table. Signed-off-by: Russell King --- arch/arm/mach-sa1100/simpad.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 = { -- cgit