[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <875a4fb7-7b54-490b-930b-4bf4f6ac7cae@lunn.ch>
Date: Tue, 25 Jul 2023 19:24:54 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: netdev@...r.kernel.org, hkallweit1@...il.com, linux@...linux.org.uk,
Jose.Abreu@...opsys.com, mengyuanlou@...-swift.com
Subject: Re: [PATCH net-next 1/7] net: pcs: xpcs: add specific vendor supoprt
for Wangxun 10Gb NICs
> +static bool xpcs_dev_is_txgbe(struct dw_xpcs *xpcs)
> +{
> + if (!strcmp(xpcs->mdiodev->bus->name, DW_MII_BUS_TXGBE))
> + return true;
> +
> + return false;
> +}
> +#define DW_MII_BUS_TXGBE "txgbe_pcs_mdio_bus"
I don't see much value in using a #define here. Just use the string
directly.
Andrew
Powered by blists - more mailing lists