• J
    tg3: Fix temperature reporting · d3d11fe0
    Jean Delvare 提交于
    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: NJean 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: NDavid S. Miller <davem@davemloft.net>
    d3d11fe0
tg3.c 465.5 KB