Skip to content

Commit 02bc4c4

Browse files
krzklag-linaro
authored andcommitted
backlight: platform_lcd: Constify lcd_ops
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20240424-video-backlight-lcd-ops-v2-13-1aaa82b07bc6@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent c935555 commit 02bc4c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/backlight/platform_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info)
6262
return plcd->us->parent == info->device;
6363
}
6464

65-
static struct lcd_ops platform_lcd_ops = {
65+
static const struct lcd_ops platform_lcd_ops = {
6666
.get_power = platform_lcd_get_power,
6767
.set_power = platform_lcd_set_power,
6868
.check_fb = platform_lcd_match,

0 commit comments

Comments
 (0)