OSDN Git Service

Merge remote-tracking branch 'origin/android/master'
[android-x86/hardware-intel-libsensors.git] / common.h
index 62d6d17..fdd6c4d 100644 (file)
--- a/common.h
+++ b/common.h
@@ -17,6 +17,8 @@
 #ifndef __COMMON_H__
 #define __COMMON_H__
 
+#include <string.h>
+
 #define MAX_DEVICES    9       /* Check iio devices 0 to MAX_DEVICES-1 */
 #define MAX_SENSORS    12      /* We can handle as many sensors */
 #define MAX_CHANNELS   4       /* We can handle as many channels per sensor */
@@ -52,7 +54,7 @@
 #define MAX_SENSOR_REPORT_SIZE 32      /* Sensor report buffer size */
 #define MAX_DEVICE_REPORT_SIZE 32      /* iio device scan buffer size */
 
-#define MAX_NAME_SIZE          32
+#define MAX_NAME_SIZE          64
 
 #define MAX_SENSOR_BASES       3       /* Max number of base sensors a sensor can rely on */