summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-10-07 20:42:38 +0200
committerSebastian Reichel <sre@kernel.org>2015-12-05 02:06:50 +0100
commit1f94b2563a02327aa8a1385c8a92b0c3f96d01b4 (patch)
treeae7327a1d89047b5d71d912b33bfc1c15810223e /drivers/power
parentd5fdfedc0ed946e96b2ac06d48b230e370105d7e (diff)
downloadblackbird-op-linux-1f94b2563a02327aa8a1385c8a92b0c3f96d01b4.tar.gz
blackbird-op-linux-1f94b2563a02327aa8a1385c8a92b0c3f96d01b4.zip
power: bq27xxx: don't fill system log by missing battery
Print message that battery is not calibrated only once to avoid spamming the log. Suggested-By: H. Nikolaus Schaller <hns@goldelico.com> Suggested-By: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/bq27xxx_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/bq27xxx_battery.c
index 880233ce9343..1cad7accf339 100644
--- a/drivers/power/bq27xxx_battery.c
+++ b/drivers/power/bq27xxx_battery.c
@@ -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;
OpenPOWER on IntegriCloud