]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add struct device_type representation of a PHY
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 2 Jun 2018 20:36:06 +0000 (22:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 12:50:16 +0000 (08:50 -0400)
commitaa3a9f355e47a417170e55b2d567be87ce19e3b9
tree4089856d545c476899578904f93923514d737014
parent066cedd233fcba44782ac267610f5ee560c513a7
net: phy: add struct device_type representation of a PHY

A PHY is a type of MDIO device, so let's model it as struct device_type
and place PM ops, attribute groups and release callback on device type
level. For this the attribute definitions have to be moved.
This change allows us to get rid of the PM ops on a bus level in a second
step.

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