Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754825AbdLTItQ (ORCPT ); Wed, 20 Dec 2017 03:49:16 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:38933 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754796AbdLTItH (ORCPT ); Wed, 20 Dec 2017 03:49:07 -0500 X-Google-Smtp-Source: ACJfBotAEWd81znA6DZpHVEVuPUzAe2GkN+Jl/6a3SEmzBXtkkAWxFv9Za9vdRRZ5GP2p1u1vFPF3g== From: Arvind Yadav To: nsekhar@ti.com, khilman@kernel.org, linux@armlinux.org.uk, kaloz@openwrt.org, khalasa@piap.pl, aaro.koskinen@iki.fi, tony@atomide.com, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, gregory.clement@free-electrons.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, marek.vasut@gmail.com, slapin@ossfans.org, jic23@cam.ac.uk, kgene@kernel.org, krzk@kernel.org, ralf@linux-mips.org, ysato@users.sourceforge.jp, dalias@libc.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH 07/11] ARM: ixp4xx: constify gpio_led Date: Wed, 20 Dec 2017 14:17:48 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1679 Lines: 53 gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-ixp4xx/dsmg600-setup.c | 2 +- arch/arm/mach-ixp4xx/nas100d-setup.c | 2 +- arch/arm/mach-ixp4xx/omixp-setup.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600-setup.c index 0f5c999..74892a8 100644 --- a/arch/arm/mach-ixp4xx/dsmg600-setup.c +++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c @@ -93,7 +93,7 @@ }, }; -static struct gpio_led dsmg600_led_pins[] = { +static const struct gpio_led dsmg600_led_pins[] __initconst = { { .name = "dsmg600:green:power", .gpio = DSMG600_LED_PWR_GPIO, diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 76dfff0..dee33d7 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c @@ -72,7 +72,7 @@ }, }; -static struct gpio_led nas100d_led_pins[] = { +static const struct gpio_led nas100d_led_pins[] __initconst = { { .name = "nas100d:green:wlan", .gpio = NAS100D_LED_WLAN_GPIO, diff --git a/arch/arm/mach-ixp4xx/omixp-setup.c b/arch/arm/mach-ixp4xx/omixp-setup.c index 2d494b4..54acf23 100644 --- a/arch/arm/mach-ixp4xx/omixp-setup.c +++ b/arch/arm/mach-ixp4xx/omixp-setup.c @@ -152,7 +152,7 @@ .resource = omixp_uart_resources, }; -static struct gpio_led mic256_led_pins[] = { +static const struct gpio_led mic256_led_pins[] __initconst = { { .name = "LED-A", .gpio = 7, -- 1.9.1