Skip to content

Commit

Permalink
MIPS: TXX9: Constify gpio_led
Browse files Browse the repository at this point in the history
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: Arvind Yadav <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/18008/
[[email protected]: improve commit message]
Signed-off-by: James Hogan <[email protected]>
  • Loading branch information
ArvindYadavCs authored and amalon committed Feb 19, 2018
1 parent 041f40f commit 21cff2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/txx9/rbtx4927/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, },
};
Expand Down

0 comments on commit 21cff2d

Please sign in to comment.