OSDN Git Service

STPK-1429 Delete a now unused variable
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 27 Mar 2014 15:40:25 +0000 (16:40 +0100)
committersuyyala <sridhar.uyyala@intel.com>
Mon, 28 Apr 2014 02:40:39 +0000 (19:40 -0700)
This array is now local to control.c and has been split.

Issue: STPK-1429

Change-Id: I0a36084f5349c1e579a7963dbfe981d9cf13e58d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
common.h
enumeration.c

index 7be8d2e..3d4b855 100644 (file)
--- a/common.h
+++ b/common.h
@@ -110,6 +110,5 @@ struct sensor_info_t
 extern int                             sensor_count;
 extern struct sensor_info_t            sensor_info[MAX_SENSORS];
 extern struct sensor_catalog_entry_t   sensor_catalog[];
-extern int                             sensors_per_device[MAX_DEVICES];
 
 #endif
index 271dba3..fc68760 100644 (file)
@@ -32,11 +32,9 @@ struct sensor_catalog_entry_t sensor_catalog[] = {
 
 /* We equate sensor handles to indices in these tables */
 
-struct sensor_t      sensor_desc[MAX_SENSORS]; /* Android-level descriptors */
-struct sensor_info_t sensor_info[MAX_SENSORS]; /* Internal descriptors      */
-
-int sensors_per_device[MAX_DEVICES];   /* Sensors can share a iio device  */
-int sensor_count;                      /* Detected sensors */
+struct sensor_t      sensor_desc[MAX_SENSORS]; /* Android-level descriptors */
+struct sensor_info_t sensor_info[MAX_SENSORS]; /* Internal descriptors      */
+int sensor_count;                              /* Detected sensors          */
 
 
 static void add_sensor (int dev_num, int catalog_index, int use_polling)
@@ -107,8 +105,6 @@ static void add_sensor (int dev_num, int catalog_index, int use_polling)
        }
 
        sensor_count++;
-
-       sensors_per_device[dev_num]++;
 }