Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1681616 > unrolled thread

[PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const

Started byLynn Lei <lynnl.yet@gmail.com>
First post2017-07-05 18:00 +0200
Last post2017-07-06 11:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to  const Lynn Lei <lynnl.yet@gmail.com> - 2017-07-05 18:00 +0200
    Re: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure  to const Thierry Reding <thierry.reding@gmail.com> - 2017-07-06 11:40 +0200

#1681616 — [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const

FromLynn Lei <lynnl.yet@gmail.com>
Date2017-07-05 18:00 +0200
Subject[PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const
Message-ID<tZUSC-8da-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1682252 — Re: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const

FromThierry Reding <thierry.reding@gmail.com>
Date2017-07-06 11:40 +0200
SubjectRe: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const
Message-ID<u0bqp-2sh-11@gated-at.bofh.it>
In reply to#1681616

[Multipart message — attachments visible in raw view] — view raw

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>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web