Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1fd88d9b authored by Arvind Yadav's avatar Arvind Yadav Committed by James Hogan
Browse files

MIPS: Alchemy: Constify gpio_led



gpio_leds are not supposed to change at runtime. struct
gpio_led_platform_data contains a const struct gpio_led pointer since
v2.6.39, so mark the gpio_led structures const too.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18006/


[jhogan@kernel.org: improve commit message]
Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
parent 2fe69ede
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,