summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/w83781d
diff options
context:
space:
mode:
authorJean Delvare2008-10-17 17:51:18 +0200
committerJean Delvare2008-10-17 17:51:18 +0200
commitc6566206c6f9583b529d62f05fb67182978b959e (patch)
tree57cf79949a43531fb95b1a6ad81728ffba95cf8e /Documentation/hwmon/w83781d
parenthwmon: (w83781d) Refactor beep enable handling (diff)
downloadkernel-qcow2-linux-c6566206c6f9583b529d62f05fb67182978b959e.tar.gz
kernel-qcow2-linux-c6566206c6f9583b529d62f05fb67182978b959e.tar.xz
kernel-qcow2-linux-c6566206c6f9583b529d62f05fb67182978b959e.zip
hwmon: (w83781d) Detect alias chips
The W83781D and W83782D 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 w83781d 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> Cc: Wolfgang Grandegger <wg@grandegger.com>
Diffstat (limited to 'Documentation/hwmon/w83781d')
0 files changed, 0 insertions, 0 deletions