diff options
author | Andrew Lunn <andrew@lunn.ch> | 2014-11-15 22:24:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-16 15:47:26 -0500 |
commit | eaa237657b97068db0eb49bae86714e9324cff9a (patch) | |
tree | c14858ba1398bfe294b1a5dde678e920e9f50715 /drivers/net/dsa/mv88e6xxx.h | |
parent | 6f2aed6ad7242ead0db1278b4b48fabb81bbc6a7 (diff) | |
download | linux-eaa237657b97068db0eb49bae86714e9324cff9a.tar.bz2 |
net: dsa: Centralise code for reading the temperature sensor
The method to read the temperature used in the mve6123_61_65 driver
can also be used for other chips. Move the code into the shared code
base of mv88e6xxx.c.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index a0780b08bb4c..03e397efde36 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -81,6 +81,7 @@ void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port); void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, struct ethtool_regs *regs, void *_p); +int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp); extern struct dsa_switch_driver mv88e6131_switch_driver; extern struct dsa_switch_driver mv88e6123_61_65_switch_driver; |