Skip to content

Commit a2b3af5

Browse files
krzklag-linaro
authored andcommitted
backlight: ili9320: 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 c464323 commit a2b3af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/ili9320.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int ili9320_get_power(struct lcd_device *ld)
161161
return lcd->power;
162162
}
163163

164-
static struct lcd_ops ili9320_ops = {
164+
static const struct lcd_ops ili9320_ops = {
165165
.get_power = ili9320_get_power,
166166
.set_power = ili9320_set_power,
167167
};

0 commit comments

Comments
 (0)