Same units as power_supply, don't need 1/10000 deg C and conversion
is error-prone.
Change-Id: I8cf146d2a7725df2dacc415daa66b2986b69f2a7
Signed-off-by: Todd Poynor <toddpoynor@google.com>
static void android_bat_get_temp(struct android_bat_data *battery)
{
- int batt_temp = 42000; /* 4.2C */
+ int batt_temp = 42; /* 4.2C */
int health = battery->batt_health;
if (battery->pdata->get_temperature)
}
}
- battery->batt_temp = batt_temp/1000;
+ battery->batt_temp = batt_temp;
}
static void android_bat_update_data(struct android_bat_data *battery)