summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/temp_sensor/tmp112.c6
-rw-r--r--include/driver/temp_sensor/tmp112.h (renamed from driver/temp_sensor/tmp112.h)0
2 files changed, 5 insertions, 1 deletions
diff --git a/driver/temp_sensor/tmp112.c b/driver/temp_sensor/tmp112.c
index 4da5c4e0e8..6e726a27b9 100644
--- a/driver/temp_sensor/tmp112.c
+++ b/driver/temp_sensor/tmp112.c
@@ -7,12 +7,16 @@
#include "common.h"
#include "console.h"
-#include "tmp112.h"
#include "i2c.h"
#include "hooks.h"
#include "math_util.h"
+#include "temp_sensor/tmp112.h"
#include "util.h"
+#ifdef CONFIG_ZEPHYR
+#include "temp_sensor/temp_sensor.h"
+#endif
+
#define TMP112_RESOLUTION 12
#define TMP112_SHIFT1 (16 - TMP112_RESOLUTION)
#define TMP112_SHIFT2 (TMP112_RESOLUTION - 8)
diff --git a/driver/temp_sensor/tmp112.h b/include/driver/temp_sensor/tmp112.h
index d1b97b138c..d1b97b138c 100644
--- a/driver/temp_sensor/tmp112.h
+++ b/include/driver/temp_sensor/tmp112.h