net: dsa: mv88e6171: Add support for reading the temperature
authorAndrew Lunn <andrew@lunn.ch>
Sat, 15 Nov 2014 21:24:52 +0000 (22:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Nov 2014 20:47:26 +0000 (15:47 -0500)
commit4dd38cdb42c31a4ba69fbccf826fd4cd5e488edb
tree31e5bfed4b6d152fd212a33bca7c56dc89588264
parenteaa237657b97068db0eb49bae86714e9324cff9a
net: dsa: mv88e6171: Add support for reading the temperature

This chip also has a temperature sensor which can be read using the
common code. In order to use it, add the needed mutex protection for
accessing registers via the shared code.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6171.c