OSDN Git Service

Reinstate monotonic timestamp in data acquisition threads
[android-x86/hardware-intel-libsensors.git] / enumeration.c
index 5e53841..c6fd7a3 100644 (file)
@@ -364,6 +364,9 @@ static void add_sensor (int dev_num, int catalog_index, int use_polling)
        sensor_desc[s].fifoReservedEventCount = 0;
        sensor_desc[s].fifoMaxEventCount = 0;
 
+       /* Populate the quirks array */
+       sensor_get_quirks(s);
+
        if (sensor_info[s].internal_name[0] == '\0') {
                /*
                 * In case the kernel-mode driver doesn't expose a name for
@@ -817,8 +820,8 @@ void delete_enumeration_data (void)
 }
 
 
-int get_sensors_list struct sensors_module_t* module,
-                       struct sensor_t const** list)
+int get_sensors_list (__attribute__((unused)) struct sensors_module_t* module,
+                     struct sensor_t const** list)
 {
        *list = sensor_desc;
        return sensor_count;