Samsung VZW MB1 update
/drivers/power/max17040_battery.c
blob:10dde40d778d9e595ca63306b8b03d0461c700b9 -> blob:f3fcb316f91cafaa75dc8c4112a6a32c9e13d37a
--- drivers/power/max17040_battery.c
+++ drivers/power/max17040_battery.c
@@ -655,7 +655,11 @@ static void max17040_rcomp_update(struct
chip->pdata->rcomp_value = 0xa01d;
} else if (chip->batt_type == BATT_TYPE_D2_ACTIVE) {
if (chg_state == POWER_SUPPLY_STATUS_CHARGING)
+#if defined(_d2ltetmo_)
+ chip->pdata->rcomp_value = 0x6d1c;
+#else
chip->pdata->rcomp_value = 0x851c;
+#endif
else
chip->pdata->rcomp_value = 0x6d1c;
} else if (chip->batt_type == BATT_TYPE_GOGH) {
@@ -869,7 +873,7 @@ static int __devinit max17040_probe(stru
chip->rcomp = max17040_get_rcomp(client);
chip->battery.name = "fuelgauge",
- chip->battery.type = POWER_SUPPLY_TYPE_BATTERY,
+ chip->battery.type = POWER_SUPPLY_TYPE_UNKNOWN,
chip->battery.get_property = max17040_get_property,
chip->battery.set_property = max17040_set_property,
chip->battery.properties = max17040_battery_props,