mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: miiphybb: Pass struct bb_miiphy_bus_ops directly to bb_miiphy_read/write()
The access to struct bb_miiphy_bus_ops via ops pointer in struct bb_miiphy_bus is not necessary with wrappers added in previous patch. Pass the ops pointer directly to both bb_miiphy_read() and bb_miiphy_write() functions. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
This commit is contained in:
@@ -75,16 +75,16 @@ struct bb_miiphy_bus_ops {
|
||||
|
||||
struct bb_miiphy_bus {
|
||||
void *priv;
|
||||
const struct bb_miiphy_bus_ops *ops;
|
||||
struct mii_dev mii;
|
||||
};
|
||||
|
||||
struct bb_miiphy_bus *bb_miiphy_alloc(void);
|
||||
void bb_miiphy_free(struct bb_miiphy_bus *bus);
|
||||
|
||||
int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg);
|
||||
int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg,
|
||||
u16 value);
|
||||
int bb_miiphy_read(struct mii_dev *miidev, const struct bb_miiphy_bus_ops *ops,
|
||||
int addr, int devad, int reg);
|
||||
int bb_miiphy_write(struct mii_dev *miidev, const struct bb_miiphy_bus_ops *ops,
|
||||
int addr, int devad, int reg, u16 value);
|
||||
#endif
|
||||
|
||||
/* phy seed setup */
|
||||
|
||||
Reference in New Issue
Block a user