diff --git a/lib/chips.c b/lib/chips.c index b39c3450..a370d208 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -3295,7 +3295,8 @@ static sensors_chip_feature bmc_features[] = { SENSORS_BMC_TEMP1_MAX+2, "temp3_max", SENSORS_BMC_TEMP1+2, SENSORS_BMC_TEMP1+2, SENSORS_MODE_RW, BMC_SYSCTL_TEMP1+2, VALUE(1), 0 }, - { SENSORS_BMC_TEMP1+3, "temp4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, /* scalings from here down */ + /* scalings from here down */ + { SENSORS_BMC_TEMP1+3, "temp4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, BMC_SYSCTL_TEMP1+3, VALUE(3), 1 }, { SENSORS_BMC_TEMP1_MIN+3, "temp4_min", SENSORS_BMC_TEMP1+3, SENSORS_BMC_TEMP1+3, SENSORS_MODE_RW, @@ -3331,6 +3332,7 @@ static sensors_chip_feature bmc_features[] = SENSORS_MODE_R, BMC_SYSCTL_ALARMS, VALUE(1), 0 }, { 0 } }; + sensors_chip_features sensors_chip_features_list[] = { { SENSORS_LM78_PREFIX, lm78_features }, diff --git a/prog/doc/doc-features.pl b/prog/doc/doc-features.pl index e70afad8..2da167f4 100755 --- a/prog/doc/doc-features.pl +++ b/prog/doc/doc-features.pl @@ -140,6 +140,7 @@ sub scan_kernel_chip while ($line = ) { next unless $line =~ m/^\s*static\s+ctl_table/; + last if $line =~ m/;/; # Skip dynamic ctl_table my @tokens = tokenize($line); while ($line = )