summaryrefslogtreecommitdiff
path: root/board/rambi/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/rambi/battery.c')
-rw-r--r--board/rambi/battery.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/board/rambi/battery.c b/board/rambi/battery.c
index 6edd535354..622d903d22 100644
--- a/board/rambi/battery.c
+++ b/board/rambi/battery.c
@@ -15,7 +15,11 @@
/* Shutdown mode parameter to write to manufacturer access register */
#define SB_SHUTDOWN_DATA 0x0010
-const struct battery_temperature_ranges bat_temp_ranges = {
+static const struct battery_info info = {
+ .voltage_max = 8400, /* mV */
+ .voltage_normal = 7400,
+ .voltage_min = 6000,
+ .precharge_current = 256, /* mA */
.start_charging_min_c = 0,
.start_charging_max_c = 45,
.charging_min_c = 0,
@@ -24,13 +28,6 @@ const struct battery_temperature_ranges bat_temp_ranges = {
.discharging_max_c = 60,
};
-static const struct battery_info info = {
- .voltage_max = 8400, /* mV */
- .voltage_normal = 7400,
- .voltage_min = 6000,
- .precharge_current = 256, /* mA */
-};
-
const struct battery_info *battery_get_info(void)
{
return &info;