Skip to content

Commit aefc911

Browse files
krzklag-linaro
authored andcommitted
backlight: l4f00242t03: 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 26679a7 commit aefc911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/l4f00242t03.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int l4f00242t03_lcd_power_set(struct lcd_device *ld, int power)
158158
return 0;
159159
}
160160

161-
static struct lcd_ops l4f_ops = {
161+
static const struct lcd_ops l4f_ops = {
162162
.set_power = l4f00242t03_lcd_power_set,
163163
.get_power = l4f00242t03_lcd_power_get,
164164
};

0 commit comments

Comments
 (0)