Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * ACPI helper for the MDIO (Ethernet PHY) API
0004  */
0005 
0006 #ifndef __LINUX_ACPI_MDIO_H
0007 #define __LINUX_ACPI_MDIO_H
0008 
0009 #include <linux/phy.h>
0010 
0011 #if IS_ENABLED(CONFIG_ACPI_MDIO)
0012 int acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode);
0013 #else /* CONFIG_ACPI_MDIO */
0014 static inline int
0015 acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode)
0016 {
0017     /*
0018      * Fall back to mdiobus_register() function to register a bus.
0019      * This way, we don't have to keep compat bits around in drivers.
0020      */
0021 
0022     return mdiobus_register(mdio);
0023 }
0024 #endif
0025 
0026 #endif /* __LINUX_ACPI_MDIO_H */