-/*
- * The sensors library prior to version 3.0 (internal version 0x400) didn't
- * report the type of values, only a name. The following lists are there to
- * convert from the names to the type. They are not used with the new
- * interface.
- */
-#if SENSORS_API_VERSION < 0x400
-static char *sensor_type_name_map[] = {
-#define SENSOR_TYPE_VOLTAGE 0
- "voltage",
-#define SENSOR_TYPE_FANSPEED 1
- "fanspeed",
-#define SENSOR_TYPE_TEMPERATURE 2
- "temperature",
-#define SENSOR_TYPE_POWER 3
- "power",
-#define SENSOR_TYPE_UNKNOWN 4
- NULL};
-
-struct sensors_labeltypes_s {
- char *label;
- int type;
-};
-typedef struct sensors_labeltypes_s sensors_labeltypes_t;
-
-/* finite list of known labels extracted from lm_sensors */
-static sensors_labeltypes_t known_features[] = {
- {"fan1", SENSOR_TYPE_FANSPEED},
- {"fan2", SENSOR_TYPE_FANSPEED},
- {"fan3", SENSOR_TYPE_FANSPEED},
- {"fan4", SENSOR_TYPE_FANSPEED},
- {"fan5", SENSOR_TYPE_FANSPEED},
- {"fan6", SENSOR_TYPE_FANSPEED},
- {"fan7", SENSOR_TYPE_FANSPEED},
- {"AIN2", SENSOR_TYPE_VOLTAGE},
- {"AIN1", SENSOR_TYPE_VOLTAGE},
- {"in10", SENSOR_TYPE_VOLTAGE},
- {"in9", SENSOR_TYPE_VOLTAGE},
- {"in8", SENSOR_TYPE_VOLTAGE},
- {"in7", SENSOR_TYPE_VOLTAGE},
- {"in6", SENSOR_TYPE_VOLTAGE},
- {"in5", SENSOR_TYPE_VOLTAGE},
- {"in4", SENSOR_TYPE_VOLTAGE},
- {"in3", SENSOR_TYPE_VOLTAGE},
- {"in2", SENSOR_TYPE_VOLTAGE},
- {"in0", SENSOR_TYPE_VOLTAGE},
- {"CPU_Temp", SENSOR_TYPE_TEMPERATURE},
- {"remote_temp", SENSOR_TYPE_TEMPERATURE},
- {"temp1", SENSOR_TYPE_TEMPERATURE},
- {"temp2", SENSOR_TYPE_TEMPERATURE},
- {"temp3", SENSOR_TYPE_TEMPERATURE},
- {"temp4", SENSOR_TYPE_TEMPERATURE},
- {"temp5", SENSOR_TYPE_TEMPERATURE},
- {"temp6", SENSOR_TYPE_TEMPERATURE},
- {"temp7", SENSOR_TYPE_TEMPERATURE},
- {"temp", SENSOR_TYPE_TEMPERATURE},
- {"Vccp2", SENSOR_TYPE_VOLTAGE},
- {"Vccp1", SENSOR_TYPE_VOLTAGE},
- {"vdd", SENSOR_TYPE_VOLTAGE},
- {"vid5", SENSOR_TYPE_VOLTAGE},
- {"vid4", SENSOR_TYPE_VOLTAGE},
- {"vid3", SENSOR_TYPE_VOLTAGE},
- {"vid2", SENSOR_TYPE_VOLTAGE},
- {"vid1", SENSOR_TYPE_VOLTAGE},
- {"vid", SENSOR_TYPE_VOLTAGE},
- {"vin4", SENSOR_TYPE_VOLTAGE},
- {"vin3", SENSOR_TYPE_VOLTAGE},
- {"vin2", SENSOR_TYPE_VOLTAGE},
- {"vin1", SENSOR_TYPE_VOLTAGE},
- {"voltbatt", SENSOR_TYPE_VOLTAGE},
- {"volt12", SENSOR_TYPE_VOLTAGE},
- {"volt5", SENSOR_TYPE_VOLTAGE},
- {"vrm", SENSOR_TYPE_VOLTAGE},
- {"5.0V", SENSOR_TYPE_VOLTAGE},
- {"5V", SENSOR_TYPE_VOLTAGE},
- {"3.3V", SENSOR_TYPE_VOLTAGE},
- {"2.5V", SENSOR_TYPE_VOLTAGE},
- {"2.0V", SENSOR_TYPE_VOLTAGE},
- {"12V", SENSOR_TYPE_VOLTAGE},
- {"power1", SENSOR_TYPE_POWER}};
-static int known_features_num = STATIC_ARRAY_SIZE(known_features);
-/* end new naming */
-#endif /* SENSORS_API_VERSION < 0x400 */
-