Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62cdfe65 authored by Arvind Yadav's avatar Arvind Yadav Committed by Lee Jones
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: default avatarThierry Reding <thierry.reding@gmail.com>
Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 06168a64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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" },
	{ }
};