From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 06:33:35 +0000 (+0200) Subject: backlight: lms283gf05: Constify lcd_ops X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7ae6431a105d07cd5334870edc17496833b5a464;p=users%2Fdwmw2%2Flinux.git backlight: lms283gf05: 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-9-1aaa82b07bc6@kernel.org Signed-off-by: Lee Jones --- diff --git a/drivers/video/backlight/lms283gf05.c b/drivers/video/backlight/lms283gf05.c index 36856962ed835..a65490e83d3de 100644 --- a/drivers/video/backlight/lms283gf05.c +++ b/drivers/video/backlight/lms283gf05.c @@ -139,7 +139,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power) return 0; } -static struct lcd_ops lms_ops = { +static const struct lcd_ops lms_ops = { .set_power = lms283gf05_power_set, .get_power = NULL, };