diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2024-04-24 08:33:39 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-03 10:45:28 +0100 |
commit | 02bc4c447e29b29ddbca78d3ea485e0b23cd64b8 (patch) | |
tree | 6ba5b9beb9d01593a7aa976a7363b430a881a7bb /drivers/video | |
parent | c935555c8a1466af7c36c3e699e3bad1c53cbed9 (diff) | |
download | linux-02bc4c447e29b29ddbca78d3ea485e0b23cd64b8.tar.gz linux-02bc4c447e29b29ddbca78d3ea485e0b23cd64b8.tar.bz2 linux-02bc4c447e29b29ddbca78d3ea485e0b23cd64b8.zip |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/platform_lcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index dc37494baf42..76872f5c34c5 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, |