Re: [PATCH RFC net-next 02/23] net: dsa: lantiq_gswip: deduplicate dsa_switch_ops
From: Andrew Lunn
Date: Sun Aug 17 2025 - 10:58:14 EST
On Sat, Aug 16, 2025 at 08:51:13PM +0100, Daniel Golle wrote:
> The two instances of struct dsa_switch_ops differ only by their
> .phylink_get_caps op. Instead of having two instances of dsa_switch_ops,
> rather just have a pointer to the phylink_get_caps function in
> struct gswip_hw_info.
>
> Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew