mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
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:
1 parent
15cf77b3b4
commit
c4c4b363be
2 files changed
+12
-2
No files matched your search
+5
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user