mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
Drop detection of the Philips Semiconductors PCA9540. This is an I2C
multiplexer, it should be handled transparently at the kernel level. On top of that, it can't be detected reliably, and the pca9540 driver doesn't even exist in Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5046 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ed57ac9cc8
commit
1e9fef2945
2 files changed
+1
-24
No files matched your search
@@ -20,6 +20,7 @@ SVN-HEAD
|
||||
Mention the f75375s driver
|
||||
Add SMSC LPC47B367-NC detection (no sensors)
|
||||
Reduce w83781d/lm78 I2C address probing range
|
||||
Drop PCA9540 detection
|
||||
|
||||
2.10.5 (20071024)
|
||||
File i2c-dev.h: Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC
|
||||
|
||||
@@ -1461,12 +1461,6 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x);
|
||||
i2c_addrs => [0x2f],
|
||||
i2c_detect => sub { fintek_detect(7, @_); },
|
||||
},
|
||||
{
|
||||
name => "Philips Semiconductors PCA9540",
|
||||
driver => "pca9540",
|
||||
i2c_addrs => [0x70],
|
||||
i2c_detect => sub { pca9540_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "Smart Battery",
|
||||
driver => "smartbatt",
|
||||
@@ -5213,24 +5207,6 @@ sub fintek_detect
|
||||
return 7;
|
||||
}
|
||||
|
||||
# $_[0]: A reference to the file descriptor to access this chip.
|
||||
# $_[1]: Address
|
||||
# Returns: undef if not detected, 1 if detected
|
||||
# Detection is rather difficult, since the PCA9540 has a single register.
|
||||
# Fortunately, no other device is known to live at this address.
|
||||
sub pca9540_detect
|
||||
{
|
||||
my ($file, $addr) = @_;
|
||||
my $reg = i2c_smbus_read_byte($file);
|
||||
|
||||
return if ($reg & 0xfa);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
# This checks for non-FFFF values for temperature, voltage, and current.
|
||||
# The address (0x0b) is specified by the SMBus standard so it's likely
|
||||
# that this really is a smart battery.
|
||||
|
||||
Reference in new issue
Block a user