summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-03-02 02:24:45 +0100
committerMarek Vasut <[email protected]>2025-03-11 23:05:57 +0100
commit7cded10da35730ff27062d19b8ad72242be8038f (patch)
treed7c3c3d34388593fd9b253000abfd75d1e6ba45e /include
parentc5318bdcf80965fddccf68146c7838816aedb154 (diff)
net: miiphybb: Pass struct mii_dev directly to bb_miiphy_read/write()
Access to MDIO bus private data can be provided by both struct mii_dev .priv member and struct bb_miiphy_bus .priv member, use the former directly and remove .priv from the later. Drop unused bb_miiphy_getbus(). This removes any dependency on struct bb_miiphy_bus from the miiphybb code, except for helper functions which will be removed later. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Paul Barker <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/miiphy.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 31d81b4b551..9b8b42799c2 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -65,12 +65,12 @@ void mdio_list_devices(void);
struct bb_miiphy_bus;
struct bb_miiphy_bus_ops {
- int (*mdio_active)(struct bb_miiphy_bus *bus);
- int (*mdio_tristate)(struct bb_miiphy_bus *bus);
- int (*set_mdio)(struct bb_miiphy_bus *bus, int v);
- int (*get_mdio)(struct bb_miiphy_bus *bus, int *v);
- int (*set_mdc)(struct bb_miiphy_bus *bus, int v);
- int (*delay)(struct bb_miiphy_bus *bus);
+ int (*mdio_active)(struct mii_dev *miidev);
+ int (*mdio_tristate)(struct mii_dev *miidev);
+ int (*set_mdio)(struct mii_dev *miidev, int v);
+ int (*get_mdio)(struct mii_dev *miidev, int *v);
+ int (*set_mdc)(struct mii_dev *miidev, int v);
+ int (*delay)(struct mii_dev *miidev);
};
struct bb_miiphy_bus {