Skip to contentSkip to conversation

backlight: ktd2801: make timing struct static

PATCH Applied Duje Mihanović 3 participants 3 messages Feb 10, 2024 – Feb 23, 2024

Subsystems (3)
lore
Share & tools
lore

Duje Mihanović

author maintainer
#0 lore raw

PATCH 1/1 backlight: ktd2801: make timing struct static

The struct containing the KTD2801 timing can be made static as it's not referenced outside the KTD2801 driver. Do this to prevent sparse complaints.

---
 drivers/video/backlight/ktd2801-backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/ktd2801-backlight.c +1 -1
index c020acff40f1..d295c2766025 100644
@@ -13,7 +13,7 @@
 #define KTD2801_MAX_BRIGHTNESS		255
 
 /* These values have been extracted from Samsung's driver. */
-const struct expresswire_timing ktd2801_timing = {
+static const struct expresswire_timing ktd2801_timing = {
 	.poweroff_us = 2600,
 	.detect_delay_us = 150,
 	.detect_us = 270,

---
base-commit: 66c76c1cd984c14660453dfa2118014817924375
change-id: 20240210-ktd2801-static-e1c23d19600c

Best regards,

Signature · 1 line
Duje Mihanović <[email protected]>
maintainer Applied
#2 lore raw

Re: (subset) [PATCH] backlight: ktd2801: make timing struct static

In reply to Duje Mihanović
Quoted 5 lines · Duje Mihanović

The struct containing the KTD2801 timing can be made static as it's not referenced outside the KTD2801 driver. Do this to prevent sparse complaints.

Applied, thanks!

[1/1] backlight: ktd2801: make timing struct static

      commit: ed2ac75acf99d33444a5d440fcad4261ad6f0d5c

--
Lee Jones [李琼斯]