Thread (13 messages) 13 messages, 3 authors, 4d ago

Re: [PATCH net-next v2 1/5] net: dsa: motorcomm: Hoist type casting helper into chip.h

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-10-04 14:00:46
Also in: lkml

quoted hunk ↗ jump to hunk
 static int yt921x_read_mib(struct yt921x_priv *priv, int port)
 {
 	struct yt921x_port *pp = &priv->ports[port];
-	struct device *dev = to_device(priv);
+	struct device *dev = yt921x_priv_to_device(priv);
 	struct yt921x_mib *mib = &pp->mib;
 	int res = 0;
Reverse Christmas tree. Plain search/replace does not work here.

There might be other instances, i did not look at all the patch.

    Andrew

---
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help