[PATCH v1 7/9] net: mdio: add MDIO_DEVAD_NONE define

Oleksij Rempel o.rempel at pengutronix.de
Mon Mar 21 02:26:04 PDT 2022


We need it for SJA11xx driver.

Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
 include/linux/mdio.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/mdio.h b/include/linux/mdio.h
index 4bcb41c71b..b910b05cec 100644
--- a/include/linux/mdio.h
+++ b/include/linux/mdio.h
@@ -324,4 +324,6 @@ static inline __u16 mdio_phy_id_c45(int prtad, int devad)
 	return MDIO_PHY_ID_C45 | (prtad << 5) | devad;
 }
 
+#define MDIO_DEVAD_NONE			(-1)
+
 #endif /* _UAPI__LINUX_MDIO_H__ */
-- 
2.30.2




More information about the barebox mailing list