All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11 v2] MIPS: Alchemy: constify gpio_led
@ 2017-12-26  6:33 Arvind Yadav
  2017-12-26  6:33 ` [PATCH 02/11 v2] MIPS: AR7: " Arvind Yadav
                   ` (4 more replies)
  0 siblings, 5 replies; 32+ messages in thread
From: Arvind Yadav @ 2017-12-26  6:33 UTC (permalink / raw)
  To: nsekhar, khilman, linux, kaloz, khalasa, aaro.koskinen, tony,
	jason, andrew, sebastian.hesselbarth, gregory.clement, daniel,
	haojian.zhuang, marek.vasut, slapin, jic23, kgene, krzk, ralf,
	ysato, dalias, tglx, mingo, hpa, linux-mips
  Cc: linux-kernel

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@gmail.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/mips/alchemy/board-gpr.c  | 2 +-
 arch/mips/alchemy/board-mtx1.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/alchemy/board-gpr.c b/arch/mips/alchemy/board-gpr.c
index 328d697..4e79dbd 100644
--- a/arch/mips/alchemy/board-gpr.c
+++ b/arch/mips/alchemy/board-gpr.c
@@ -190,7 +190,7 @@ static struct platform_device gpr_mtd_device = {
 /*
  * LEDs
  */
-static struct gpio_led gpr_gpio_leds[] = {
+static const struct gpio_led gpr_gpio_leds[] = {
 	{	/* green */
 		.name			= "gpr:green",
 		.gpio			= 4,
diff --git a/arch/mips/alchemy/board-mtx1.c b/arch/mips/alchemy/board-mtx1.c
index 85bb756..aab55aa 100644
--- a/arch/mips/alchemy/board-mtx1.c
+++ b/arch/mips/alchemy/board-mtx1.c
@@ -145,7 +145,7 @@ static struct platform_device mtx1_wdt = {
 	.resource = mtx1_wdt_res,
 };
 
-static struct gpio_led default_leds[] = {
+static const struct gpio_led default_leds[] = {
 	{
 		.name	= "mtx1:green",
 		.gpio = 211,
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2018-07-02 11:16 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-26  6:33 [PATCH 01/11 v2] MIPS: Alchemy: constify gpio_led Arvind Yadav
2017-12-26  6:33 ` [PATCH 02/11 v2] MIPS: AR7: " Arvind Yadav
2017-12-26  6:33 ` [PATCH 03/11 v2] MIPS: TXX9: " Arvind Yadav
2017-12-26  6:34 ` [PATCH 04/11 v2] x86: geode: " Arvind Yadav
2017-12-26  6:35 ` [PATCH 05/11 v2] sh: mach-rsk: rsk7203: " Arvind Yadav
2017-12-26  6:47   ` Arvind Yadav
2017-12-26  6:37 ` [PATCH 06/11 v2] ARM: davinci: " Arvind Yadav
2017-12-26  6:37   ` Arvind Yadav
2017-12-26  6:37   ` [PATCH 07/11 v2] ARM: ixp4xx: " Arvind Yadav
2017-12-26  6:37     ` Arvind Yadav
2017-12-26  6:37   ` [PATCH 08/11 v2] ARM: OMAP1: " Arvind Yadav
2017-12-26  6:37     ` Arvind Yadav
2018-01-09 17:32     ` Aaro Koskinen
2018-01-09 17:32       ` Aaro Koskinen
2018-07-02 11:16     ` Tony Lindgren
2018-07-02 11:16       ` Tony Lindgren
2017-12-26  6:37   ` [PATCH 09/11 v2] ARM: orion5x: " Arvind Yadav
2017-12-26  6:37     ` Arvind Yadav
2017-12-26 23:02     ` kbuild test robot
2017-12-26 23:02       ` kbuild test robot
2017-12-26  6:37   ` [PATCH 10/11 v2] ARM: s3c24xx/s3c64xx: " Arvind Yadav
2017-12-26  6:37     ` Arvind Yadav
2017-12-26 17:42     ` Krzysztof Kozlowski
2017-12-26 17:42       ` Krzysztof Kozlowski
2017-12-26 18:40       ` arvindY
2017-12-26 18:40         ` arvindY
2017-12-27  8:19     ` [PATCH 10/11 v3] " Krzysztof Kozlowski
2017-12-27  8:19       ` Krzysztof Kozlowski
2017-12-27 11:03       ` arvindY
2017-12-27 11:03         ` arvindY
2017-12-26  6:37   ` [PATCH 11/11 v2] ARM: pxa: " Arvind Yadav
2017-12-26  6:37     ` Arvind Yadav

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.