drm/bridge: lontium-lt8912b: make read-only const array supply_names static
Subsystems (5)
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
Signed-off-by Colin Ian King <[email protected]>
--- drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/lontium-lt8912b.c +1 -1
@@ -673,7 +673,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(lt8912_bridge_pm_ops, lt8912_bridge_suspend, lt8static 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
Quoted 4 lines · Colin Ian King
Don't populate the read-only const array
supply_nameson the stack at run time, instead make it staticSigned-off-by Colin Ian King <[email protected]>
Quoted 4 lines · Colin Ian King
Don't populate the read-only const array
supply_nameson the stack at run time, instead make it staticSigned-off-by Colin Ian King <[email protected]>
Reviewed-by Luca Ceresoli <[email protected]>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Quoted 2 lines · Colin Ian King
Don't populate the read-only const array
supply_nameson 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