|
@@ -311,7 +311,7 @@ static void bq27x00_update(struct bq27x00_device_info *di)
|
|
struct bq27x00_reg_cache cache = {0, };
|
|
struct bq27x00_reg_cache cache = {0, };
|
|
bool is_bq27500 = di->chip == BQ27500;
|
|
bool is_bq27500 = di->chip == BQ27500;
|
|
|
|
|
|
- cache.flags = bq27x00_read(di, BQ27x00_REG_FLAGS, is_bq27500);
|
|
|
|
|
|
+ cache.flags = bq27x00_read(di, BQ27x00_REG_FLAGS, !is_bq27500);
|
|
if (cache.flags >= 0) {
|
|
if (cache.flags >= 0) {
|
|
if (!is_bq27500 && (cache.flags & BQ27000_FLAG_CI)) {
|
|
if (!is_bq27500 && (cache.flags & BQ27000_FLAG_CI)) {
|
|
dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n");
|
|
dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n");
|