Skip to content

Commit

Permalink
power: bq27xxx: don't fill system log by missing battery
Browse files Browse the repository at this point in the history
Print message that battery is not calibrated only once
to avoid spamming the log.

Suggested-By: H. Nikolaus Schaller <[email protected]>
Suggested-By: Pali Rohár <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
neilbrown authored and sre committed Dec 5, 2015
1 parent d5fdfed commit 1f94b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/bq27xxx_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ static void bq27xxx_battery_update(struct bq27xxx_device_info *di)
if (cache.flags >= 0) {
cache.temperature = bq27xxx_battery_read_temperature(di);
if (has_ci_flag && (cache.flags & BQ27000_FLAG_CI)) {
dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n");
dev_info_once(di->dev, "battery is not calibrated! ignoring capacity values\n");
cache.capacity = -ENODATA;
cache.energy = -ENODATA;
cache.time_to_empty = -ENODATA;
Expand Down

0 comments on commit 1f94b25

Please sign in to comment.