• Jean Delvare's avatar
    hwmon: (it87) Fix thermal sensor type values · 4ed10779
    Jean Delvare authored
    The it87 driver doesn't follow the standard sensor type values as
    documented in Documentation/hwmon/sysfs-interface. It uses value 2 for
    thermistors instead of value 4. This causes "sensors" to tell the user
    that the chip is setup for a transistor while it is actually setup for
    a thermistor.
    
    Using value 4 for thermistors solves the problem. For compatibility
    reasons, we still accept value 2 but emit a warning message so that
    users update their configuration files.
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
    4ed10779
it87.c 48.8 KB