• Jean Delvare's avatar
    tg3: Fix temperature reporting · d3d11fe0
    Jean Delvare authored
    The temperature registers appear to report values in degrees Celsius
    while the hwmon API mandates values to be exposed in millidegrees
    Celsius. Do the conversion so that the values reported by "sensors"
    are correct.
    
    Fixes: aed93e0b ("tg3: Add hwmon support for temperature")
    Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
    Cc: Prashant Sreedharan <prashant@broadcom.com>
    Cc: Michael Chan <mchan@broadcom.com>
    Cc: stable@vger.kernel.org [v3.6+]
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d3d11fe0
tg3.c 466 KB