* [PATCH] video: backlight: gpio_backlight.c: make of_device_id structure const
@ 2017-07-05 15:44 ` Lynn Lei
0 siblings, 0 replies; 2+ messages in thread
From: Lynn Lei @ 2017-07-05 15:44 UTC (permalink / raw)
To: lee.jones
Cc: daniel.thompson, jingoohan1, b.zolnierkie, linux-fbdev, linux-kernel
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
Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>
---
drivers/video/backlight/gpio_backlight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c
index 18134416b154..97d976f433c4 100644
--- a/drivers/video/backlight/gpio_backlight.c
+++ b/drivers/video/backlight/gpio_backlight.c
@@ -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 */ }
};
--
2.13.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] video: backlight: gpio_backlight.c: make of_device_id structure const
@ 2017-07-05 15:44 ` Lynn Lei
0 siblings, 0 replies; 2+ messages in thread
From: Lynn Lei @ 2017-07-05 15:44 UTC (permalink / raw)
To: lee.jones
Cc: daniel.thompson, jingoohan1, b.zolnierkie, linux-fbdev, linux-kernel
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
Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>
---
drivers/video/backlight/gpio_backlight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c
index 18134416b154..97d976f433c4 100644
--- a/drivers/video/backlight/gpio_backlight.c
+++ b/drivers/video/backlight/gpio_backlight.c
@@ -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 */ }
};
--
2.13.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-05 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-05 15:44 [PATCH] video: backlight: gpio_backlight.c: make of_device_id structure const Lynn Lei
2017-07-05 15:44 ` Lynn Lei
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.