2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 02:34:01 +08:00
linux-next/drivers/hwmon
Jim Cromie 694fa056a6 [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>
2005-09-05 09:26:55 -07:00
..
adm1021.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
adm1025.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
adm1026.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
adm1031.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
adm9240.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
asb100.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
atxp1.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
ds1621.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
fscher.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
fscpos.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
gl518sm.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
gl520sm.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
hwmon-vid.c [PATCH] hwmon: VID table update 2005-09-05 09:14:24 -07:00
hwmon.c [PATCH] I2C hwmon: hwmon sysfs class 2005-09-05 09:14:07 -07:00
it87.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
Kconfig [PATCH] hwmon: hwmon vs i2c, second round (11/11) 2005-09-05 09:14:24 -07:00
lm63.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm75.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm75.h [PATCH] hwmon: move SENSORS_LIMIT to hwmon.h 2005-09-05 09:14:17 -07:00
lm77.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm78.c [PATCH] hwmon: hwmon vs i2c, second round (11/11) 2005-09-05 09:14:24 -07:00
lm80.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm83.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm85.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
lm87.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
lm90.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
lm92.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
Makefile [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
max1619.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
pc87360.c [PATCH] hwmon: (2/3) pc87360 driver update 2005-09-05 09:26:55 -07:00
sis5595.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
smsc47b397.c [PATCH] I2C: refactor message in i2c_detach_client 2005-09-05 09:14:14 -07:00
smsc47m1.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
via686a.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
w83l785ts.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
w83627ehf.c [PATCH] I2C: refactor message in i2c_detach_client 2005-09-05 09:14:14 -07:00
w83627hf.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
w83781d.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
w83792d.c [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00