phy: Add phydev_err() and phydev_dbg() macros
In preparation for moving some of the phy_device structure members, add macros for printing errors and debug information. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cd690e48f5
commit
72ba48be3e
@@ -777,6 +777,12 @@ static inline int phy_read_status(struct phy_device *phydev)
|
||||
return phydev->drv->read_status(phydev);
|
||||
}
|
||||
|
||||
#define phydev_err(_phydev, format, args...) \
|
||||
dev_err(&_phydev->dev, format, ##args)
|
||||
|
||||
#define phydev_dbg(_phydev, format, args...) \
|
||||
dev_dbg(&_phydev->dev, format, ##args)
|
||||
|
||||
int genphy_config_init(struct phy_device *phydev);
|
||||
int genphy_setup_forced(struct phy_device *phydev);
|
||||
int genphy_restart_aneg(struct phy_device *phydev);
|
||||
|
||||
Reference in New Issue
Block a user