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

Unverified Commit 21cff2d9 authored by Arvind Yadav's avatar Arvind Yadav Committed by James Hogan
Browse files

MIPS: TXX9: 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/18008/


[jhogan@kernel.org: improve commit message]
Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
parent 041f40f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ static void __init rbtx4927_mtd_init(void)

static void __init rbtx4927_gpioled_init(void)
{
	static struct gpio_led leds[] = {
	static const struct gpio_led leds[] = {
		{ .name = "gpioled:green:0", .gpio = 0, .active_low = 1, },
		{ .name = "gpioled:green:1", .gpio = 1, .active_low = 1, },
	};