]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: allow a PHY driver to define neither features nor get_features
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 3 Apr 2019 21:14:33 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:55:37 +0000 (17:55 -0700)
commit170348649a99b2ffc68be5b49bc2770ed9519bb2
tree153247f2aac85ae9a41dc41487bc82ce578b4b79
parent09e0ae7786d9635b46fd3dc4562768302e0172ef
net: phy: allow a PHY driver to define neither features nor get_features

Meanwhile we have generic functions for reading the abilities of
Clause 22 / 45 PHY's. This allows to use them as fallback in case
callback get_features isn't set. Benefit is the reduction of
boilerplate code in PHY drivers.

v2:
- adjust the comment in phy_driver_register to match the code

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c