diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-20 09:52:15 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-08-07 18:04:18 +0200 |
commit | 62cdfe658535c39003d4d1b9d7f9b5a23a0db6bf (patch) | |
tree | 735e3c39a723b11529303002aad7a90979cb3c8b /drivers/video/backlight | |
parent | backlight: lm3630a: Bump REG_MAX value to 0x50 instead of 0x1F (diff) | |
download | linux-62cdfe658535c39003d4d1b9d7f9b5a23a0db6bf.tar.xz linux-62cdfe658535c39003d4d1b9d7f9b5a23a0db6bf.zip |
backlight: pwm_bl: Make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" }, { } }; |