[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <cc2baa7e8f144e1ba8b1a2e83b8e836095cf3d3e.1514267721.git.arvind.yadav.cs@gmail.com>
Date: Tue, 26 Dec 2017 12:05:40 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: nsekhar@...com, khilman@...nel.org, linux@...linux.org.uk,
kaloz@...nwrt.org, khalasa@...p.pl, aaro.koskinen@....fi,
tony@...mide.com, jason@...edaemon.net, andrew@...n.ch,
sebastian.hesselbarth@...il.com,
gregory.clement@...e-electrons.com, daniel@...que.org,
haojian.zhuang@...il.com, marek.vasut@...il.com,
slapin@...fans.org, jic23@....ac.uk, kgene@...nel.org,
krzk@...nel.org, ralf@...ux-mips.org, ysato@...rs.sourceforge.jp,
dalias@...c.org, tglx@...utronix.de, mingo@...hat.com,
hpa@...or.com
Cc: linux-kernel@...r.kernel.org, linux-sh@...r.kernel.org
Subject: [PATCH 05/11 v2] sh: mach-rsk: rsk7203: constify gpio_led
gpio_led are not supposed to change at runtime.
struct gpio_led_platform_data working with const gpio_led
provided by <linux/leds.h>. So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
changes in v2:
The GPIO LED driver can be built as a module, it can
be loaded after the init sections have gone away.
So removed '__initconst'.
arch/sh/boards/mach-rsk/devices-rsk7203.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/boards/mach-rsk/devices-rsk7203.c b/arch/sh/boards/mach-rsk/devices-rsk7203.c
index a8089f7..6676c0e 100644
--- a/arch/sh/boards/mach-rsk/devices-rsk7203.c
+++ b/arch/sh/boards/mach-rsk/devices-rsk7203.c
@@ -50,7 +50,7 @@ static struct platform_device smsc911x_device = {
},
};
-static struct gpio_led rsk7203_gpio_leds[] = {
+static const struct gpio_led rsk7203_gpio_leds[] = {
{
.name = "green",
.gpio = GPIO_PE10,
--
2.7.4
Powered by blists - more mailing lists