linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const
@ 2017-07-05 15:55 Lynn Lei
  2017-07-06  9:33 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Lynn Lei @ 2017-07-05 15:55 UTC (permalink / raw)
  To: thierry.reding
  Cc: lee.jones, daniel.thompson, jingoohan1, b.zolnierkie, linux-pwm,
	linux-kernel

Fixed a of_device_id structure normally be const warning issue which
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/pwm_bl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 002f1ce22bd0..9bd17682655a 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -178,7 +178,7 @@ static int pwm_backlight_parse_dt(struct device *dev,
 	return 0;
 }
 
-static struct of_device_id pwm_backlight_of_match[] = {
+static const struct of_device_id pwm_backlight_of_match[] = {
 	{ .compatible = "pwm-backlight" },
 	{ }
 };
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const
  2017-07-05 15:55 [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const Lynn Lei
@ 2017-07-06  9:33 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2017-07-06  9:33 UTC (permalink / raw)
  To: Lynn Lei
  Cc: lee.jones, daniel.thompson, jingoohan1, b.zolnierkie, linux-pwm,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

On Wed, Jul 05, 2017 at 11:55:09PM +0800, Lynn Lei wrote:
> Fixed a of_device_id structure normally be const warning issue which
> 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/pwm_bl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-06  9:33 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:55 [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const Lynn Lei
2017-07-06  9:33 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).