tg3: Add hwmon support for temperature
authorMichael Chan <mchan@broadcom.com>
Mon, 16 Jul 2012 16:24:02 +0000 (16:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 06:10:30 +0000 (23:10 -0700)
commitaed93e0bf493535c25c27270001226bb1dd379b2
treeac90051c0b2f86ad78b67a6c33e8620f2c845d30
parentcf8d55ae08459d6412779559fb1e88252db86c9d
tg3: Add hwmon support for temperature

Some tg3 devices have management firmware that can export sensor data.
Export temperature sensor reading via hwmon sysfs.

[hwmon interface suggested by Ben Hutchings <bhutchings@solarflare.com>]

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h