Skip to contentSkip to conversation

video: backlight: gpio_backlight.c: make of_device_id structure const

PATCH New Lynn Lei 1 participant 1 message Jul 5, 2017

Subsystems (2)
lore
Share & tools
lore

Lynn Lei

author
#0 lore raw

PATCH 1/1 video: backlight: gpio_backlight.c: make of_device_id structure const

Fixed a of_device_id structure normally be const warning issue checked by scripts/checkpatch.pl:
WARNING: struct of_device_id should normally be const

---
 drivers/video/backlight/gpio_backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/gpio_backlight.c +1 -1
index 18134416b154..97d976f433c4 100644
@@ -146,7 +146,7 @@ static int gpio_backlight_probe(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id gpio_backlight_of_match[] = {
+static const struct of_device_id gpio_backlight_of_match[] = {
 	{ .compatible = "gpio-backlight" },
 	{ /* sentinel */ }
 };
Signature · 1 line
2.13.2