mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 13:57:41 +00:00
Drop unreliable smart battery detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5966 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -7,6 +7,8 @@ SVN HEAD
|
|||||||
sensors-detect: Add AMD family 15h CPU detection
|
sensors-detect: Add AMD family 15h CPU detection
|
||||||
Add detection of ADT7461A / NCT1008
|
Add detection of ADT7461A / NCT1008
|
||||||
Add detection of ITE IT8516E/F/G
|
Add detection of ITE IT8516E/F/G
|
||||||
|
Integrate with systemd
|
||||||
|
Drop unreliable smart battery detection
|
||||||
|
|
||||||
3.3.0 (2011-03-28)
|
3.3.0 (2011-03-28)
|
||||||
Makefile: Check for bison and flex
|
Makefile: Check for bison and flex
|
||||||
|
@@ -1344,11 +1344,6 @@ use vars qw(@i2c_adapter_names);
|
|||||||
driver => "jc42",
|
driver => "jc42",
|
||||||
i2c_addrs => [0x18..0x1f],
|
i2c_addrs => [0x18..0x1f],
|
||||||
i2c_detect => sub { jedec_JC42_4_detect(@_, 9); },
|
i2c_detect => sub { jedec_JC42_4_detect(@_, 9); },
|
||||||
}, {
|
|
||||||
name => "Smart Battery",
|
|
||||||
driver => "sbs", # ACPI driver, not sure if it always works
|
|
||||||
i2c_addrs => [0x0b],
|
|
||||||
i2c_detect => sub { smartbatt_detect(@_); },
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -5705,19 +5700,6 @@ sub emc1403_detect
|
|||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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.
|
|
||||||
sub smartbatt_detect
|
|
||||||
{
|
|
||||||
my ($file, $addr) = @_;
|
|
||||||
|
|
||||||
return if i2c_smbus_read_word_data($file, 0x08) == 0xffff
|
|
||||||
|| i2c_smbus_read_word_data($file, 0x09) == 0xffff
|
|
||||||
|| i2c_smbus_read_word_data($file, 0x0a) == 0xffff;
|
|
||||||
return 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Chip to detect: 0 = W83L784R/AR/G, 1 = W83L785R/G, 2 = W83L786NR/NG/R/G,
|
# Chip to detect: 0 = W83L784R/AR/G, 1 = W83L785R/G, 2 = W83L786NR/NG/R/G,
|
||||||
# 3 = W83L785TS-S
|
# 3 = W83L785TS-S
|
||||||
# Registers used:
|
# Registers used:
|
||||||
|
Reference in New Issue
Block a user