summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2007-10-15 01:10:52 +0200
committerMark M. Hoffman <mhoffman@lightlink.com>2007-11-08 14:42:45 +0100
commitdf48ed804f44a040e990976b537efc1e133c74d8 (patch)
tree8d3a0324b795cfebb7409db9a89960069de44bc5 /drivers/char
parenthwmon: Add power meter spec to Documentation/hwmon/sysfs-interface (diff)
downloadlinux-df48ed804f44a040e990976b537efc1e133c74d8.tar.xz
linux-df48ed804f44a040e990976b537efc1e133c74d8.zip
hwmon: (w83627hf) hoist nr-1 offset out of show-store-temp-X
This hoists nr-1 offset out of (show|store)_temp_*(.*) callbacks, and into SENSOR_DEVICE_ATTRs for sysfs tempN_X files. It also combines temp[1] and temp_add[2] (array) fields in w83627hf_data into 3 elem arrays, which simplifies special-case handling of nr, allowing simplification of callback bodies and rerolling a flattened loop in w83627hf_update_device(struct device *dev). The array conversion changes temp[1] from u8 to u16, but this was happening implicitly via the helper functions anyway. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions