Skip to content

Commit 03788e7

Browse files
krzklag-linaro
authored andcommitted
backlight: ams369fg06: 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 <krzk@kernel.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20240424-video-backlight-lcd-ops-v2-2-1aaa82b07bc6@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent a2e25c8 commit 03788e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/backlight/ams369fg06.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static int ams369fg06_set_brightness(struct backlight_device *bd)
427427
return ret;
428428
}
429429

430-
static struct lcd_ops ams369fg06_lcd_ops = {
430+
static const struct lcd_ops ams369fg06_lcd_ops = {
431431
.get_power = ams369fg06_get_power,
432432
.set_power = ams369fg06_set_power,
433433
};

0 commit comments

Comments
 (0)