]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Alchemy: Constify gpio_led
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 26 Dec 2017 06:33:08 +0000 (12:03 +0530)
committerJames Hogan <jhogan@kernel.org>
Mon, 19 Feb 2018 10:55:35 +0000 (10:55 +0000)
commit4f9b00b3c8d3b0afa54d1ae9b795af35eaa82d20
treec0afc29424004b1f1d8c914f3d9886c3e8ba885a
parent79a1eb7837f81e90e13142c410f66254c9435ff4
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>
arch/mips/alchemy/board-gpr.c
arch/mips/alchemy/board-mtx1.c