OSDN Git Service

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)
commit7f4828ff27d4c92280222f6427981052fd3319e9
tree4089856d545c476899578904f93923514d737014
parent7d840a606515b04dfb4f13d1abb86dd59163799c
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