Skip to content

Commit 7ae6431

Browse files
krzklag-linaro
authored andcommitted
backlight: lms283gf05: 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 aefc911 commit 7ae6431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/lms283gf05.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power)
139139
return 0;
140140
}
141141

142-
static struct lcd_ops lms_ops = {
142+
static const struct lcd_ops lms_ops = {
143143
.set_power = lms283gf05_power_set,
144144
.get_power = NULL,
145145
};

0 commit comments

Comments
 (0)