提交 a7936798 编写于 作者: R Rasmus Villemoes 提交者: Jakub Kicinski

linux/phy.h: add phydev_err_probe() wrapper for dev_err_probe()

The dev_err_probe() function is quite useful to avoid boilerplate
related to -EPROBE_DEFER handling. Add a phydev_err_probe() helper to
simplify making use of that from phy drivers which otherwise use the
phydev_* helpers.
Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 ab1e9de8
...@@ -1539,6 +1539,9 @@ static inline void phy_device_reset(struct phy_device *phydev, int value) ...@@ -1539,6 +1539,9 @@ static inline void phy_device_reset(struct phy_device *phydev, int value)
#define phydev_err(_phydev, format, args...) \ #define phydev_err(_phydev, format, args...) \
dev_err(&_phydev->mdio.dev, format, ##args) dev_err(&_phydev->mdio.dev, format, ##args)
#define phydev_err_probe(_phydev, err, format, args...) \
dev_err_probe(&_phydev->mdio.dev, err, format, ##args)
#define phydev_info(_phydev, format, args...) \ #define phydev_info(_phydev, format, args...) \
dev_info(&_phydev->mdio.dev, format, ##args) dev_info(&_phydev->mdio.dev, format, ##args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册