]> 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)
commit4acc1523c5bdbf9a2f3f2ad1b4dcbbf20f670ad4
tree153247f2aac85ae9a41dc41487bc82ce578b4b79
parent538cb72662e1824891a4b92d381037266711147a
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