From: Jim Cromie Date: Sun, 14 Oct 2007 23:10:52 +0000 (-0600) Subject: hwmon: (w83627hf) hoist nr-1 offset out of show-store-temp-X X-Git-Tag: v2.6.24-rc3~144^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df48ed804f44a040e990976b537efc1e133c74d8;p=pandora-kernel.git 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 Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman --- Reading git-diff-tree failed