projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c464323
)
backlight: ili9320: Constify lcd_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Wed, 24 Apr 2024 06:33:32 +0000
(08:33 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 3 May 2024 09:45:06 +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-6-1aaa82b07bc6@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/ili9320.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/ili9320.c
b/drivers/video/backlight/ili9320.c
index 2acd2708f8cad9ac80aadf2631737364df08c849..3e318d1891b6305bf213a775697224ff88feaa39 100644
(file)
--- a/
drivers/video/backlight/ili9320.c
+++ b/
drivers/video/backlight/ili9320.c
@@
-161,7
+161,7
@@
static int ili9320_get_power(struct lcd_device *ld)
return lcd->power;
}
-static struct lcd_ops ili9320_ops = {
+static
const
struct lcd_ops ili9320_ops = {
.get_power = ili9320_get_power,
.set_power = ili9320_set_power,
};