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]>
This commit is contained in:
Arvind Yadav 2017-06-20 13:22:15 +05:30 • committed by Lee Jones
commit 62cdfe6585

View file

@ -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" },
{ }
};