video: backlight: pwm_bl.c: make of_device_id structure to const
Subsystems (3)
PATCH 1/1 video: backlight: pwm_bl.c: make of_device_id structure to const
Fixed a of_device_id structure normally be const warning issue which checked by scripts/checkpatch.pl:
WARNING: struct of_device_id should normally be const
Signed-off-by Lynn Lei <[email protected]>
--- drivers/video/backlight/pwm_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/pwm_bl.c +1 -1
@@ -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" }, { } };
Signature · 1 line
2.13.2
Quoted 8 lines · Lynn Lei
Fixed a
of_device_idstructure normally be const warning issue which checked byscripts/checkpatch.pl:
WARNING: structof_device_idshould normally be constSigned-off-by Lynn Lei <[email protected]>--- drivers/video/backlight/pwm_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by Thierry Reding <[email protected]>