diff options
-rw-r--r-- | driver/temp_sensor/tmp112.c | 2 | ||||
-rw-r--r-- | driver/temp_sensor/tmp112.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/driver/temp_sensor/tmp112.c b/driver/temp_sensor/tmp112.c index 3eed42469b..064bc70301 100644 --- a/driver/temp_sensor/tmp112.c +++ b/driver/temp_sensor/tmp112.c @@ -91,7 +91,7 @@ static void tmp112_poll(void) } DECLARE_HOOK(HOOK_SECOND, tmp112_poll, HOOK_PRIO_TEMP_SENSOR); -static void tmp112_init(void) +void tmp112_init(void) { int tmp, s, rv; int set_mask, clr_mask; diff --git a/driver/temp_sensor/tmp112.h b/driver/temp_sensor/tmp112.h index af9506ec5b..fce7edc15b 100644 --- a/driver/temp_sensor/tmp112.h +++ b/driver/temp_sensor/tmp112.h @@ -44,4 +44,11 @@ extern const struct tmp112_sensor_t tmp112_sensors[]; */ int tmp112_get_val(int idx, int *temp_ptr); +/** + * Init the sensors. Note, this will run automatically on HOOK_INIT, but is + * made available for boards which may not always power the sensor in all + * states. + */ +void tmp112_init(void); + #endif /* __CROS_EC_TMP112_H */ |