Thread (42 messages) 42 messages, 6 authors, 2025-03-04

Re: [PATCH net-next v5 09/12] net: pse-pd: pd692x0: Add support for controller and manager power supplies

flat view

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2025-02-24 13:17:20
Also in: linux-devicetree, linux-doc, lkml

On Mon, 24 Feb 2025 12:49:19 +0000
"Russell King (Oracle)" [off-list ref] wrote:
On Mon, Feb 24, 2025 at 01:42:22PM +0100, Maxime Chevallier wrote:
quoted
On Tue, 18 Feb 2025 17:19:13 +0100
Kory Maincent [off-list ref] wrote:  
quoted
diff --git a/drivers/net/pse-pd/pd692x0.c b/drivers/net/pse-pd/pd692x0.c
index 44ded2aa6fca..c9fa60b314ce 100644
--- a/drivers/net/pse-pd/pd692x0.c
+++ b/drivers/net/pse-pd/pd692x0.c
@@ -976,8 +976,10 @@ pd692x0_register_managers_regulator(struct pd692x0_priv *priv,
 	reg_name_len = strlen(dev_name(dev)) + 23;
 
 	for (i = 0; i < nmanagers; i++) {
+		static const char * const regulators[] = { "vaux5", "vaux3p3" };  
Looks like the 'static' is not needed here :)  
Have you checked the compiler output before saying that?
No I have not
I've seen plenty of instances where "static" should be there but isn't,
leading to the compiler generating inline code to create the
array/struct on the stack.
Makes sense then, so it should be good here.

Thanks,

Maxime
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help