Changes regarding the new i2c_check_addr function

Changes in sensors.c:

  sensors_detect now skips addresses which are already taken. Even a
  force parameter can not override this, as it could lead to major
  problems.
  For ISA addresses, the same is done; but the client drivers still need
  a check if they claim more than one ISA address (as all of the current
  ISA clients do).

Changes in chip drivers:

  Removed the comment about needing address registration

Changes in i2cdetect.c:

  Marks addresses which are already claimed

Changes in sensors-detect:

  Warns when an address is already claimed, and skips it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@667 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-12-08 20:37:09 +00:00
1 parent d3441611d6
commit fd545796ee
17 files changed
+15 -43

No files matched your search

+4
View File
@@ -25,6 +25,7 @@
#include <linux/ctype.h>
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/ioport.h>
#include "version.h"
#include <linux/i2c.h>
@@ -613,6 +614,9 @@ int sensors_detect(struct i2c_adapter *adapter,
for (addr = 0x00;
addr <= (is_isa?0xffff:0x7f);
addr ++) {
if ((is_isa && check_region(addr,1)) ||
(!is_isa && i2c_check_addr(adapter,addr)))
continue;
/* If it is in one of the force entries, we don't do any detection
at all */