OSDN Git Service

Min/Max delay for Light and Temperature
[android-x86/hardware-intel-libsensors.git] / common.h
index 431b41a..76d26dd 100644 (file)
--- a/common.h
+++ b/common.h
@@ -34,6 +34,7 @@
 #define MAX_NAME_SIZE          32
 
 #define ARRAY_SIZE(x) sizeof(x)/sizeof(x[0])
+#define REPORTING_MODE(x)      ((x) & 0x06)
 
 #ifdef __LP64__
        typedef uint64_t flag_t;