Skip to content

Commit ee7b1e8

Browse files
krzklag-linaro
authored andcommitted
backlight: tdo24m: 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 02bc4c4 commit ee7b1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/tdo24m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static int tdo24m_set_mode(struct lcd_device *ld, struct fb_videomode *m)
322322
return lcd->adj_mode(lcd, mode);
323323
}
324324

325-
static struct lcd_ops tdo24m_ops = {
325+
static const struct lcd_ops tdo24m_ops = {
326326
.get_power = tdo24m_get_power,
327327
.set_power = tdo24m_set_power,
328328
.set_mode = tdo24m_set_mode,

0 commit comments

Comments
 (0)