Skip to content

Commit 62560bf

Browse files
krzklag-linaro
authored andcommitted
backlight: ltv350qv: 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 2b47287 commit 62560bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/ltv350qv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static int ltv350qv_get_power(struct lcd_device *ld)
217217
return lcd->power;
218218
}
219219

220-
static struct lcd_ops ltv_ops = {
220+
static const struct lcd_ops ltv_ops = {
221221
.get_power = ltv350qv_get_power,
222222
.set_power = ltv350qv_set_power,
223223
};

0 commit comments

Comments
 (0)