Made lm78 and w83781d drivers emit a warning when a 'force' parameter

is used but ignored (because the driver could not determine what
        specific chip was there).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@342 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-03-24 21:44:38 +00:00
1 parent 15cf77b3b4
commit c4c4b363be
2 files changed
+12 -2

No files matched your search

+5 -1
View File
@@ -385,8 +385,12 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
kind = lm78j;
else if ((i & 0xfe) == 0xc0)
kind = lm79;
else
else {
if (kind == 0)
printk("lm78.o: Ignoring 'force' parameter for unknown chip at "
"adapter %d, address 0x%02x\n",i2c_adapter_id(adapter),address);
goto ERROR1;
}
}
if (kind == lm78) {