• Jim Cromie's avatar
    hwmon/pc87360 separate alarm files: define some constants · 28f74e71
    Jim Cromie authored
    Bring hwmon/pc87360 into agreement with
    Documentation/hwmon/sysfs-interface.
    
    Patchset adds separate limit alarms for voltages and temps, it also adds
    temp[123]_fault files.  On my Soekris, temps 1,2 are unused/unconnected,
    so temp[123]_fault = 1,1,0 respectively.  This agrees with
    /usr/bin/sensors, which has always shown them as OPEN.  Temps 4,5,6 are
    thermistor based, and dont have a fault bit in their status register.
    
    This patch:
    
    2 different kinds of constants added:
    - CHAN_ALM_* constants for (later) vin, temp alarm callbacks.
    - CHAN_* conversion constants, used in _init_device, partly for RW1C bits
    Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
    Cc: Jean Delvare <khali@linux-fr.org>
    Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    28f74e71
pc87360.c 47.3 KB