mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
The lm75 module now understands the new insmod parameters.
Also fixed a few nasty sensors.c bugs, and a minor LM78 one. If the new parameters give trouble, please recompile sensors.c with DEBUG=1 and examine the dmesg output! git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@338 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
876fdf9a43
commit
66d89242d4
3 files changed
+189
-85
No files matched your search
+13
-3
@@ -307,10 +307,16 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
|
||||
const char *client_name = "";
|
||||
int is_isa = i2c_is_isa_adapter(adapter);
|
||||
|
||||
|
||||
if (kind < 0) {
|
||||
/* We need address registration for the I2C bus too. That is not yet
|
||||
implemented. */
|
||||
if (is_isa) {
|
||||
if (check_region(address,LM78_EXTENT))
|
||||
goto ERROR0;
|
||||
}
|
||||
|
||||
/* Probe whether there is anything available on this address. Already
|
||||
done for SMBus clients */
|
||||
if (kind < 0) {
|
||||
if (is_isa) {
|
||||
|
||||
#define REALLY_SLOW_IO
|
||||
@@ -393,8 +399,12 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
|
||||
} else if (kind == lm79) {
|
||||
type_name = "lm79";
|
||||
client_name = "LM79 chip";
|
||||
} else
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
printk("lm78.o: Internal error: unknown kind (%d)?!?",kind);
|
||||
#endif
|
||||
goto ERROR1;
|
||||
}
|
||||
|
||||
/* Reserve the ISA region */
|
||||
if (is_isa)
|
||||
|
||||
Reference in new issue
Block a user