提交 62cdfe65 编写于 作者: A Arvind Yadav 提交者: Lee Jones

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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: NThierry Reding <thierry.reding@gmail.com>
Acked-by: NDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 06168a64
...@@ -178,7 +178,7 @@ static int pwm_backlight_parse_dt(struct device *dev, ...@@ -178,7 +178,7 @@ static int pwm_backlight_parse_dt(struct device *dev,
return 0; return 0;
} }
static struct of_device_id pwm_backlight_of_match[] = { static const struct of_device_id pwm_backlight_of_match[] = {
{ .compatible = "pwm-backlight" }, { .compatible = "pwm-backlight" },
{ } { }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册