Skip to content

Commit 8b2d456

Browse files
krzklag-linaro
authored andcommitted
fbdev: imx: 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 <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Reviewed-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 9293c30 commit 8b2d456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/imxfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ static int imxfb_lcd_set_power(struct lcd_device *lcddev, int power)
857857
return 0;
858858
}
859859

860-
static struct lcd_ops imxfb_lcd_ops = {
860+
static const struct lcd_ops imxfb_lcd_ops = {
861861
.check_fb = imxfb_lcd_check_fb,
862862
.get_contrast = imxfb_lcd_get_contrast,
863863
.set_contrast = imxfb_lcd_set_contrast,

0 commit comments

Comments
 (0)