diff options
Diffstat (limited to 'driver/temp_sensor/tmp112.c')
-rw-r--r-- | driver/temp_sensor/tmp112.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/driver/temp_sensor/tmp112.c b/driver/temp_sensor/tmp112.c index 267227f6f3..f7f28159aa 100644 --- a/driver/temp_sensor/tmp112.c +++ b/driver/temp_sensor/tmp112.c @@ -7,8 +7,8 @@ #include "common.h" #include "console.h" -#include "hooks.h" #include "i2c.h" +#include "hooks.h" #include "math_util.h" #include "temp_sensor/tmp112.h" #include "util.h" @@ -92,7 +92,6 @@ int tmp112_get_val_mk(int idx, int *temp_mk_ptr) return EC_SUCCESS; } -#ifndef CONFIG_ZEPHYR static void tmp112_poll(void) { int s; @@ -104,18 +103,6 @@ static void tmp112_poll(void) } } DECLARE_HOOK(HOOK_SECOND, tmp112_poll, HOOK_PRIO_TEMP_SENSOR); -#else -static void tmp112_update_temperature(int idx) -{ - int temp_reg = 0; - - if (idx >= TMP112_COUNT) - return; - - if (get_reg_temp(idx, &temp_reg) == EC_SUCCESS) - temp_mk_local[idx] = tmp112_reg_to_mk(temp_reg); -} -#endif /* CONFIG_ZEPHYR */ void tmp112_init(void) { |