mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
-comment abituguru entry in lib/chips.c and prog/sensors/main.c, as the
abituguru seems to work well with the new dynamic chip support and generic chip printroutines. note: the abituguru code should be completly removed in the future. -comment k8temp entry in lib/chips.c and prog/sensors/main.c, as the k8temp seems to work well with the new dynamic chip support and generic chip printroutines. note: the k8temp code should be completly removed in the future. -make the match for the subtype exact instead of a strncmp, otherwise an alarm_enable flag gets classified as an alarm, leading to all sensors who have their alarm enabled getting an alarm reported, as the alarm_enabled gets read as alarm. -and do the same for the _input match to check if this is a main or subfeature git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4367 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ba5140b3d8
commit
16408d8665
4 files changed
+6
-7
No files matched your search
+1
-1
@@ -598,7 +598,7 @@ sensors_feature_type sensors_feature_get_type(
|
||||
|
||||
submatches = matches[i].submatches;
|
||||
for(i = 0; submatches[i].name != 0; i++)
|
||||
if (!strncmp(name + pmatch[3].rm_so, submatches[i].name, size_second))
|
||||
if (!strcmp(name + pmatch[3].rm_so, submatches[i].name))
|
||||
return submatches[i].type;
|
||||
|
||||
return SENSORS_FEATURE_UNKNOWN;
|
||||
|
||||
+2
-2
@@ -6159,8 +6159,8 @@ sensors_chip_features sensors_chip_features_list[] =
|
||||
{ SENSORS_SMSC47B397_PREFIX, smsc47b397_features },
|
||||
{ SENSORS_F71805F_PREFIX, f71805f_features },
|
||||
{ SENSORS_F71872F_PREFIX, f71805f_features },
|
||||
{ SENSORS_ABITUGURU_PREFIX, abituguru_features },
|
||||
{ SENSORS_K8TEMP_PREFIX, k8temp_features },
|
||||
// { SENSORS_ABITUGURU_PREFIX, abituguru_features },
|
||||
// { SENSORS_K8TEMP_PREFIX, k8temp_features },
|
||||
{ SENSORS_CORETEMP_PREFIX, coretemp_features },
|
||||
{ SENSORS_DME1737_PREFIX, dme1737_features },
|
||||
PLACEHOLDER_ELEMENTS,
|
||||
|
||||
+1
-2
@@ -96,8 +96,7 @@ sensors_chip_features sensors_read_dynamic_chip(struct sysfs_device *sysdir)
|
||||
feature.data.compute_mapping = SENSORS_NO_MAPPING;
|
||||
|
||||
if (pmatch[2].rm_so != -1) {
|
||||
if (!strncmp(name + pmatch[2].rm_so, "_input",
|
||||
pmatch[2].rm_eo - pmatch[2].rm_so)) {
|
||||
if (!strcmp(name + pmatch[2].rm_so, "_input")) {
|
||||
int last_match;
|
||||
|
||||
/* copy only the part before the _ */
|
||||
|
||||
+2
-2
@@ -425,8 +425,8 @@ struct match matches[] = {
|
||||
{ "smsc47b397", print_smsc47b397 },
|
||||
{ "f71805f", print_f71805f },
|
||||
{ "f71872f", print_f71805f },
|
||||
{ "abituguru", print_abituguru },
|
||||
{ "k8temp", print_k8temp },
|
||||
// { "abituguru", print_abituguru },
|
||||
// { "k8temp", print_k8temp },
|
||||
{ "coretemp", print_coretemp },
|
||||
{ "dme1737", print_dme1737 },
|
||||
{ NULL, NULL }
|
||||
|
||||
Reference in new issue
Block a user