Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <krzk@kernel.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240424-video-backlight-lcd-ops-v2-14-1aaa82b07bc6@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
ee7b1e84 02bc4c44

+1 -1
+1 -1
drivers/video/backlight/tdo24m.c
··· 322 322 return lcd->adj_mode(lcd, mode); 323 323 } 324 324 325 - static struct lcd_ops tdo24m_ops = { 325 + static const struct lcd_ops tdo24m_ops = { 326 326 .get_power = tdo24m_get_power, 327 327 .set_power = tdo24m_set_power, 328 328 .set_mode = tdo24m_set_mode,