[PATCH 5/7] bq27xxx: suppress error messages

From: Juergen Borleis
Date: Tue Jun 10 2014 - 05:46:28 EST


Due to the support for hot-plug, the inaccessibility of the device if a regular use-case.

Signed-off-by: Juergen Borleis <jbe@xxxxxxxxxxxxxx>
---
drivers/power/bq27x00_battery.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
index a5a88f1..3f3169e 100644
--- a/drivers/power/bq27x00_battery.c
+++ b/drivers/power/bq27x00_battery.c
@@ -382,7 +382,7 @@ static int bq27x00_battery_read_pwr_avg(struct bq27x00_device_info *di, u8 reg)

tval = bq27x00_read(di, reg, false);
if (tval < 0) {
- dev_err(di->dev, "error reading power avg rgister %02x: %d\n",
+ dev_dbg(di->dev, "error reading power avg register %02x: %d\n",
reg, tval);
return tval;
}
@@ -403,7 +403,7 @@ static int bq27x00_battery_read_health(struct bq27x00_device_info *di)

tval = bq27x00_read(di, BQ27x00_REG_FLAGS, false);
if (tval < 0) {
- dev_err(di->dev, "error reading flag register:%d\n", tval);
+ dev_dbg(di->dev, "error reading flag register:%d\n", tval);
return tval;
}

--
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/