• Pali Rohár's avatar
    i8k: Add support for fan labels · f989e554
    Pali Rohár authored
    This patch adds labels support for fans if SMM function with EAX register
    0x03a3 reports it. This information was taken from DOS binary NBSVC.MDM.
    
    Additionally this patch change detection of fan presece. Instead reading fan
    status now detection is based on new label SMM function. Dell DOS binary
    NBSVC.MDM is doing similar checks, so we should do that too.
    
    This patch also remove I8K_FAN_LEFT and I8K_FAN_RIGHT usage from hwmon driver
    part because that names does not make sense anymore. So numeric constants are
    used instead. Original /proc/i8k ioctl part was not changed for compatibility
    reasons.
    Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
    Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    f989e554
i8k.c 23.4 KB