Skip to content

Commit 2b47287

Browse files
krzklag-linaro
authored andcommitted
backlight: lms501kf03: 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 7ae6431 commit 2b47287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/lms501kf03.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static int lms501kf03_set_power(struct lcd_device *ld, int power)
304304
return lms501kf03_power(lcd, power);
305305
}
306306

307-
static struct lcd_ops lms501kf03_lcd_ops = {
307+
static const struct lcd_ops lms501kf03_lcd_ops = {
308308
.get_power = lms501kf03_get_power,
309309
.set_power = lms501kf03_set_power,
310310
};

0 commit comments

Comments
 (0)