mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 00:35:35 +00:00
Only use fschmd driver for kernels >= 2.6.24
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4961 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1371,30 +1371,12 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x);
|
||||
i2c_addrs => [0x50..0x53],
|
||||
i2c_detect => sub { ddcmonitor_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Poseidon I",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscpeg_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Poseidon II",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscpos_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Scylla",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscscy_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Hermes",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscher_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Heimdal",
|
||||
driver => "fschmd",
|
||||
@@ -1489,7 +1471,8 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x);
|
||||
|
||||
# Special case chip information goes here and would be included in
|
||||
# the chip_special_cases routine below
|
||||
use vars qw(@chip_kern24_ids @chip_kern26_ids);
|
||||
use vars qw(@chip_kern24_ids @chip_kern26_ids @chip_kern_lt_26_24_ids
|
||||
@chip_kern_gt_eq_26_24_ids);
|
||||
@chip_kern24_ids = (
|
||||
{
|
||||
name => "Analog Devices ADM1024",
|
||||
@@ -1544,6 +1527,50 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids);
|
||||
},
|
||||
);
|
||||
|
||||
# sigh special case for old seperate FSC drivers to new merged one mapping
|
||||
@chip_kern_lt_26_24_ids = (
|
||||
{
|
||||
name => "FSC Poseidon I",
|
||||
driver => "fscpos",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscpeg_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Scylla",
|
||||
driver => "fscscy",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscscy_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Hermes",
|
||||
driver => "fscher",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscher_detect(@_); },
|
||||
},
|
||||
);
|
||||
|
||||
@chip_kern_gt_eq_26_24_ids = (
|
||||
{
|
||||
name => "FSC Poseidon I",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscpeg_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Scylla",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscscy_detect(@_); },
|
||||
},
|
||||
{
|
||||
name => "FSC Hermes",
|
||||
driver => "fschmd",
|
||||
i2c_addrs => [0x73],
|
||||
i2c_detect => sub { fscher_detect(@_); },
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
# This is a list of all recognized superio chips.
|
||||
# Each entry must have the following fields:
|
||||
# name: The full chip name
|
||||
@@ -3445,8 +3472,14 @@ sub scan_cpu($)
|
||||
# This routine follows the pattern of the SiS adapter special cases
|
||||
sub chip_special_cases
|
||||
{
|
||||
# Based on the kernel, add the appropriate chip structure to the
|
||||
# Based on the kernel, add the appropriate chip structures to the
|
||||
# chip_ids detection list
|
||||
if (kernel_version_at_least(2, 6, 24)) {
|
||||
push @chip_ids, @chip_kern_gt_eq_26_24_ids;
|
||||
} else {
|
||||
push @chip_ids, @chip_kern_lt_26_24_ids;
|
||||
}
|
||||
|
||||
if (kernel_version_at_least(2, 6, 0)) {
|
||||
push @chip_ids, @chip_kern26_ids;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user