diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-12-26 12:03:10 +0530 |
---|---|---|
committer | James Hogan <jhogan@kernel.org> | 2018-02-19 10:55:36 +0000 |
commit | 21cff2d946cd4710abac23d6a7b81ff1965f3fed (patch) | |
tree | 1c017e4953f783d98afcdb28b6f5aa7a9a99dce3 /arch/mips/txx9 | |
parent | 041f40f44cd0509a52c66ada27e115429c010d4d (diff) | |
download | op-kernel-dev-21cff2d946cd4710abac23d6a7b81ff1965f3fed.zip op-kernel-dev-21cff2d946cd4710abac23d6a7b81ff1965f3fed.tar.gz |
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: Arvind 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: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'arch/mips/txx9')
-rw-r--r-- | arch/mips/txx9/rbtx4927/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/txx9/rbtx4927/setup.c b/arch/mips/txx9/rbtx4927/setup.c index f5b367e..31955c1 100644 --- a/arch/mips/txx9/rbtx4927/setup.c +++ b/arch/mips/txx9/rbtx4927/setup.c @@ -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, }, }; |