summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2005-09-02 22:57:52 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 09:26:55 -0700
commit694fa056a60828ef54a5db958468cc600c3b3622 (patch)
treead18cb871ffc475a6dfb7ff09dda6996b6e62f1b /fs/binfmt_flat.c
parentf0986bd8f390392948db85dac526fb238752372b (diff)
downloadop-kernel-dev-694fa056a60828ef54a5db958468cc600c3b3622.zip
op-kernel-dev-694fa056a60828ef54a5db958468cc600c3b3622.tar.gz
[PATCH] hwmon: (2/3) pc87360 driver update
pc87360: number-skew to init The temp, therm, fan, pwm callbacks all have an offset skew in the code which accommodates attribute numbering conventions under /sys/bus/i2c/devices/9191-6620/ (ie they start at 1) This patch moves that skew into the declaration, and out of the functions (except for therm, where we simplify from 2 skews to 1). The declarative skew is clearer, less error-prone, and more efficient. The use of 11+offset-4 below reflects the fact that the sysfs numbering of these units is 4, 5, 6, but they use internal VLM units 11, 12, 13 to measure the thermistor voltages. There's one remaining skew factor, in *_crit callbacks below, because there are no critical thresholds for voltages 0-10, only for those supporting the thermistors. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud