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>
This commit is contained in:
parent
06168a64b1
commit
62cdfe6585
1 changed files with 1 additions and 1 deletions
|
@ -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" },
|
||||
{ }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue