mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
Added detection and insmod parameters for the LTC1710
Detection is completely impossible, but sensors-detect now assumes with a confidence of 1 (the lowest possible) that any chip in the LTC1710 address range is a real LTC1710. Perhaps I should remove this again, as I don't think this chip will be encountered 'in the wild' if your name is not Phil - in which case you would have soldered it to your SMBus yourself, so you should know what you are doing... git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@372 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1e88cbd54e
commit
67689f6f5d
2 files changed
+129
-74
No files matched your search
@@ -83,7 +83,7 @@ use vars qw(@pci_adapters @chip_ids @undetectable_adapters);
|
||||
use subs qw(lm78_detect lm78_isa_detect lm78_alias_detect lm75_detect
|
||||
lm80_detect w83781d_detect w83781d_alias_detect
|
||||
w83781d_isa_detect gl518sm_detect gl520sm_detect adm9240_detect
|
||||
adm1021_detect sis5595_isa_detect eeprom_detect);
|
||||
adm1021_detect sis5595_isa_detect eeprom_detect ltc1710_detect);
|
||||
|
||||
# This is a list of all recognized chips.
|
||||
# Each entry must have the following fields:
|
||||
@@ -230,7 +230,13 @@ use subs qw(lm78_detect lm78_isa_detect lm78_alias_detect lm75_detect
|
||||
driver => "eeprom",
|
||||
i2c_addrs => [0x50..0x57],
|
||||
i2c_detect => sub { eeprom_detect @_ },
|
||||
}
|
||||
},
|
||||
{
|
||||
name => "LTC1710",
|
||||
driver => "ltc1710",
|
||||
i2c_addrs => [0x58..0x5a],
|
||||
i2c_detect => sub { ltc1710_detect @_ },
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -1388,6 +1394,17 @@ sub eeprom_detect
|
||||
return (1);
|
||||
}
|
||||
|
||||
# $_[0]: A reference to the file descriptor to access this chip.
|
||||
# We may assume an i2c_set_slave_addr was already done.
|
||||
# $_[1]: Address
|
||||
# Returns: undef if not detected, (1) if detected.
|
||||
# Detection is impossible!
|
||||
sub ltc1710_detect
|
||||
{
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
||||
################
|
||||
# MAIN PROGRAM #
|
||||
################
|
||||
|
||||
Reference in new issue
Block a user