net: phy: marvell10g: add thermal hwmon device
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 3 Apr 2018 09:31:45 +0000 (10:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 15:24:54 +0000 (11:24 -0400)
commit0d3ad8549c6327a8e0bad0fb785c00e07672f296
tree919aa9917ef2e40964634ad08e580b63c212ab6d
parentbfacfb457b36911a10140b8cb3ce76a74883ac5a
net: phy: marvell10g: add thermal hwmon device

Add a thermal monitoring device for the Marvell 88x3310, which updates
once a second.  We also need to hook into the suspend/resume mechanism
to ensure that the thermal monitoring is reconfigured when we resume.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c