aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-09-29 23:04:11 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-01 22:55:36 -0700
commitc4fabb8b3c0d724eb93dabaf346b0dd8a8be7118 (patch)
tree5031a851072cb196a7460d129b793f1bc924848f /include/linux/phy.h
parentnet: phy: Add phydev_warn() (diff)
downloadlinux-dev-c4fabb8b3c0d724eb93dabaf346b0dd8a8be7118.tar.xz
linux-dev-c4fabb8b3c0d724eb93dabaf346b0dd8a8be7118.zip
net: phy: Add phydev_info()
Add phydev_info() and make use of it within the phy drivers and core code. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 0ab9f89773fd..0f6e7bf5e9c5 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -968,6 +968,9 @@ static inline void phy_device_reset(struct phy_device *phydev, int value)
#define phydev_err(_phydev, format, args...) \
dev_err(&_phydev->mdio.dev, format, ##args)
+#define phydev_info(_phydev, format, args...) \
+ dev_info(&_phydev->mdio.dev, format, ##args)
+
#define phydev_warn(_phydev, format, args...) \
dev_warn(&_phydev->mdio.dev, format, ##args)