Skip to content

Commit 26679a7

Browse files
krzklag-linaro
authored andcommitted
backlight: jornada720_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 <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent a2b3af5 commit 26679a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/jornada720_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int jornada_lcd_set_power(struct lcd_device *ld, int power)
8181
return 0;
8282
}
8383

84-
static struct lcd_ops jornada_lcd_props = {
84+
static const struct lcd_ops jornada_lcd_props = {
8585
.get_contrast = jornada_lcd_get_contrast,
8686
.set_contrast = jornada_lcd_set_contrast,
8787
.get_power = jornada_lcd_get_power,

0 commit comments

Comments
 (0)