Skip to content

Commit 4c00ff8

Browse files
krzklag-linaro
authored andcommitted
backlight: hx8357: 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 94194e3 commit 4c00ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/hx8357.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static int hx8357_get_power(struct lcd_device *lcdev)
559559
return lcd->state;
560560
}
561561

562-
static struct lcd_ops hx8357_ops = {
562+
static const struct lcd_ops hx8357_ops = {
563563
.set_power = hx8357_set_power,
564564
.get_power = hx8357_get_power,
565565
};

0 commit comments

Comments
 (0)