2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00

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: 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/18006/
[jhogan@kernel.org: improve commit message]
Signed-off-by: James Hogan <jhogan@kernel.org>
This commit is contained in:
Arvind Yadav 2017-12-26 12:03:08 +05:30 committed by James Hogan
parent 2fe69ede3e
commit 1fd88d9bef
No known key found for this signature in database
GPG Key ID: 6C0B6993DE38767A
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,