Skip to contentSkip to conversation

drm/bridge: lontium-lt8912b: make read-only const array supply_names static

PATCH Applied Colin Ian King 3 participants 4 messages Jul 14 – Jul 27

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: lontium-lt8912b: make read-only const array supply_names static

Don't populate the read-only const array supply_names on the stack at run time, instead make it static

---
 drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/lontium-lt8912b.c +1 -1
index 729b12b67470..62eabf0a3b88 100644
@@ -673,7 +673,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(lt8912_bridge_pm_ops, lt8912_bridge_suspend, lt8
 static int lt8912_get_regulators(struct lt8912 *lt)
 {
 	unsigned int i;
-	const char * const supply_names[] = {
+	static const char * const supply_names[] = {
 		"vdd", "vccmipirx", "vccsysclk", "vcclvdstx",
 		"vcchdmitx", "vcclvdspll", "vcchdmipll"
 	};
Signature · 1 line
2.53.0
reviewer Applied
#3 lore raw
In reply to Colin Ian King
Quoted 2 lines · Colin Ian King

Don't populate the read-only const array supply_names on the stack at run time, instead make it static

Applied, thanks!

[1/1] drm/bridge: lontium-lt8912b: make read-only const array supply_names static

      commit: d767cc461fb8d1763d86a670dd9c9f1b3c4579d5

Best regards,

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com