projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02bc4c4
)
backlight: tdo24m: Constify lcd_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Wed, 24 Apr 2024 06:33:40 +0000
(08:33 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 3 May 2024 09:45:31 +0000
(10:45 +0100)
'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>
drivers/video/backlight/tdo24m.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/tdo24m.c
b/drivers/video/backlight/tdo24m.c
index fc6fbaf855943780fd493d056893bcd78b184629..c413b3c68e954e56503fdb7131bd15db39da3b17 100644
(file)
--- a/
drivers/video/backlight/tdo24m.c
+++ b/
drivers/video/backlight/tdo24m.c
@@
-322,7
+322,7
@@
static int tdo24m_set_mode(struct lcd_device *ld, struct fb_videomode *m)
return lcd->adj_mode(lcd, mode);
}
-static struct lcd_ops tdo24m_ops = {
+static
const
struct lcd_ops tdo24m_ops = {
.get_power = tdo24m_get_power,
.set_power = tdo24m_set_power,
.set_mode = tdo24m_set_mode,