summaryrefslogtreecommitdiff
path: root/include/battery_pack.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/battery_pack.h')
-rw-r--r--include/battery_pack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/battery_pack.h b/include/battery_pack.h
index 10022ddac1..620b99e374 100644
--- a/include/battery_pack.h
+++ b/include/battery_pack.h
@@ -7,6 +7,8 @@
#ifndef __CROS_EC_BATTERY_PACK_H
#define __CROS_EC_BATTERY_PACK_H
+#define CELSIUS_TO_DECI_KELVIN(temp_c) ((temp_c) * 10 + 2731)
+
/* Battery parameters */
struct batt_params {
int temperature; /* Temperature in 0.1 K */