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

backlight: platform_lcd: 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-13-1aaa82b07bc6@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
02bc4c44 c935555c

+1 -1
+1 -1
drivers/video/backlight/platform_lcd.c
··· 62 62 return plcd->us->parent == info->device; 63 63 } 64 64 65 - static struct lcd_ops platform_lcd_ops = { 65 + static const struct lcd_ops platform_lcd_ops = { 66 66 .get_power = platform_lcd_get_power, 67 67 .set_power = platform_lcd_set_power, 68 68 .check_fb = platform_lcd_match,