Re: [PATCH net-next v2 1/5] net: dsa: motorcomm: Hoist type casting helper into chip.h
From: Andrew Lunn
Date: Sun Oct 04 2026 - 10:01:16 EST
> 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