aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Yadav <[email protected]>2017-06-20 13:22:15 +0530
committerLee Jones <[email protected]>2017-08-07 17:04:18 +0100
commit62cdfe658535c39003d4d1b9d7f9b5a23a0db6bf (patch)
tree735e3c39a723b11529303002aad7a90979cb3c8b
parent06168a64b1ae346816fcd0a0c3ea5276c778408b (diff)
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 <[email protected]> Acked-by: Thierry Reding <[email protected]> Acked-by: Daniel Thompson <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Lee Jones <[email protected]>
-rw-r--r--drivers/video/backlight/pwm_bl.c2
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" },
{ }
};