From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 06:33:39 +0000 (+0200) Subject: backlight: platform_lcd: Constify lcd_ops X-Git-Tag: v6.10-rc1~50^2~7^3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02bc4c447e29b29ddbca78d3ea485e0b23cd64b8;p=thirdparty%2Flinux.git 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 Reviewed-by: Daniel Thompson Link: https://lore.kernel.org/r/20240424-video-backlight-lcd-ops-v2-13-1aaa82b07bc6@kernel.org Signed-off-by: Lee Jones --- diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index dc37494baf42a..76872f5c34c5a 100644 --- a/drivers/video/backlight/platform_lcd.c +++ b/drivers/video/backlight/platform_lcd.c @@ -62,7 +62,7 @@ static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) return plcd->us->parent == info->device; } -static struct lcd_ops platform_lcd_ops = { +static const struct lcd_ops platform_lcd_ops = { .get_power = platform_lcd_get_power, .set_power = platform_lcd_set_power, .check_fb = platform_lcd_match,