]> git.hungrycats.org Git - linux/commit
[PATCH] I2C: make I2C chipset drivers use temp_hyst[1-3]
authorJean Delvare <khali@linux-fr.org>
Thu, 4 Dec 2003 05:43:05 +0000 (21:43 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 4 Dec 2003 05:43:05 +0000 (21:43 -0800)
commita624762907963274ecb069ab6065c65b849c4c6f
tree30cc19634a56a0f76cc00ec3c9b42676841577d2
parent0fb8d0165b57c89aec9af289b873fdd1ed3a3c4b
[PATCH] I2C: make I2C chipset drivers use temp_hyst[1-3]

Summary of the changes:
adm1021.c: No changes, that chipset uses a real min/max model.
eeeprom.c: No changes (obviously).
it87.c:    Remove buggy comments (obviously taken from via686a) about
           max and min temperature limits being over and hyst. This
           isn't the case for this driver (min/max model).
lm75.c:    Simple sysfs file name change (temp_min to temp_hyst).
lm78.c:    Simple sysfs file name change (temp_min to temp_hyst).
lm85.c:    No changes needed (min/max model).
via686a.c: Rename functions and macros from min/max to hyst/over, what
           it really is. Remove unnecessary comments. Rename sysfs
           files from temp_min[1-3] to temp_hyst[1-3].
w83781d.c: Rename variables from temp_min* to temp_hyst* (needed so
           that the macros keep working). Update macro calls
           accordingly. Fix writing temp to max and hyst being
           swapped.

Additional remarks:

The lm75 and lm78 having a single temperature channel, there is no
number appended to the file names. Shouldn't a "1" be appended in this
case? I think it would make it easier for the future library to catch
all the files.

I made sure the drivers would still compile after the changes, but did
not test them otherwise (no working 2.6.0 kernel here, and not all the
hardware anyway).
drivers/i2c/chips/it87.c
drivers/i2c/chips/lm75.c
drivers/i2c/chips/lm78.c
drivers/i2c/chips/via686a.c
drivers/i2c/chips/w83781d.c