diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c index b5eeb86e2606..5efa94cf27eb 100644 --- a/drivers/power/supply/sbs-battery.c +++ b/drivers/power/supply/sbs-battery.c @@ -813,9 +813,15 @@ static int sbs_get_chemistry(struct i2c_client *client, else val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; - if (val->intval == POWER_SUPPLY_TECHNOLOGY_UNKNOWN) + if (val->intval == POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { + struct sbs_info *chip = i2c_get_clientdata(client); + dev_warn_once(&client->dev, "Unknown chemistry: %s\n", chemistry); + if (chip->flags & SBS_FLAGS_TI_BQ20ZX5) + val->intval = POWER_SUPPLY_TECHNOLOGY_LION; + } + return 0; }