1 /* SPDX-License-Identifier: GPL-2.0+ */
3 #ifndef _REALTEK_MDIO_H
4 #define _REALTEK_MDIO_H
6 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_MDIO)
8 static inline int realtek_mdio_driver_register(struct mdio_driver *drv)
10 return mdio_driver_register(drv);
13 static inline void realtek_mdio_driver_unregister(struct mdio_driver *drv)
15 mdio_driver_unregister(drv);
18 int realtek_mdio_probe(struct mdio_device *mdiodev);
19 void realtek_mdio_remove(struct mdio_device *mdiodev);
20 void realtek_mdio_shutdown(struct mdio_device *mdiodev);
22 #else /* IS_ENABLED(CONFIG_NET_DSA_REALTEK_MDIO) */
24 static inline int realtek_mdio_driver_register(struct mdio_driver *drv)
29 static inline void realtek_mdio_driver_unregister(struct mdio_driver *drv)
33 static inline int realtek_mdio_probe(struct mdio_device *mdiodev)
38 static inline void realtek_mdio_remove(struct mdio_device *mdiodev)
42 static inline void realtek_mdio_shutdown(struct mdio_device *mdiodev)
46 #endif /* IS_ENABLED(CONFIG_NET_DSA_REALTEK_MDIO) */
48 #endif /* _REALTEK_MDIO_H */