Skip to content

Commit c935555

Browse files
krzklag-linaro
authored andcommitted
backlight: otm3225a: 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 62560bf commit c935555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/otm3225a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int otm3225a_get_power(struct lcd_device *ld)
205205
return dd->power;
206206
}
207207

208-
static struct lcd_ops otm3225a_ops = {
208+
static const struct lcd_ops otm3225a_ops = {
209209
.set_power = otm3225a_set_power,
210210
.get_power = otm3225a_get_power,
211211
};

0 commit comments

Comments
 (0)