Re: [PATCH net-next v4 1/7] net: dsa: motorcomm: Hoist port_to_priv helper into chip.h

From: Andrew Lunn

Date: Tue Sep 22 2026 - 08:18:14 EST


On Tue, Sep 22, 2026 at 04:30:18AM +0800, David Yang wrote:
> yt921x_poll_mib() open-codes the same container_of_const() expression
> that leds.c defines as to_yt921x_priv(). Move the macro to chip.h as
> yt921x_port_to_priv() so both files use one definition.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew