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)
commita1deab17b2e9017e8a12e8b9e32ddda290f2b269
tree153247f2aac85ae9a41dc41487bc82ce578b4b79
parente177163d36d531f7def3807a2ccf24ba3fe97624
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