OSDN Git Service

Merge branch e35fc5677585eb789efb5c02e2de084fbedcd67d into android/master
[android-x86/hardware-intel-libsensors.git] / transform.h
index 687c1dd..a4b97df 100644 (file)
@@ -7,6 +7,9 @@
 
 #include "common.h"
 
+#define CONVERT_GAUSS_TO_MICROTESLA(x) ((x) * 100)
+#define CONVERT_MICROTESLA_TO_GAUSS(x) ((x) / 100)
+
 void   select_transform        (int s);
 float  acquire_immediate_float_value   (int s, int c);
 uint64_t acquire_immediate_uint64_value        (int s, int c);