diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-10-17 17:51:15 +0200 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-10-17 17:51:15 +0200 |
commit | 18c73f90421f9a87a0f6bc3a08880d0f1f9b2a74 (patch) | |
tree | 3b34751ca992174b957e99fbd973019aadc3b1bd /kernel | |
parent | hwmon: (lm78) Fix I/O resource conflict with PNP (diff) | |
download | linux-18c73f90421f9a87a0f6bc3a08880d0f1f9b2a74.tar.xz linux-18c73f90421f9a87a0f6bc3a08880d0f1f9b2a74.zip |
hwmon: (lm78) Detect alias chips
The LM78 and LM79 can be accessed either on the I2C bus or the ISA
bus. We must not access the same chip through both interfaces. So far
we were relying on the user passing the correct ignore parameter to
skip the registration of the I2C interface as suggested by
sensors-detect, but this is fragile: the user may load the lm78
driver without running sensors-detect, and the i2c bus numbers are
not stable across reboots and hardware changes.
So, better detect alias chips in the driver directly, and skip any
I2C chip which is obviously an alias of the ISA chip. This is done
by comparing the value of 26 selected registers.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions