[PATCH 3/3] pm2301-charger: Combine substrings for three messages
From: SF Markus Elfring
Date: Sat Dec 16 2017 - 15:15:45 EST
From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Dec 2017 20:51:10 +0100
The script "checkpatch.pl" pointed information out like the following.
WARNING: quoted string split across lines
Thus fix the affected source code places.
Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/power/supply/pm2301_charger.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/power/supply/pm2301_charger.c b/drivers/power/supply/pm2301_charger.c
index 99a9892f0f68..fa37144d9638 100644
--- a/drivers/power/supply/pm2301_charger.c
+++ b/drivers/power/supply/pm2301_charger.c
@@ -742,8 +742,7 @@ static int pm2xxx_charger_ac_en(struct ux500_charger *charger,
if (volt_index < 0 || curr_index < 0) {
dev_err(pm2->dev,
- "Charger voltage or current too high, "
- "charging not started\n");
+ "Charger voltage or current too high, charging not started\n");
return -ENXIO;
}
@@ -791,8 +790,8 @@ static int pm2xxx_charger_ac_en(struct ux500_charger *charger,
ret = pm2xxx_charging_enable_mngt(pm2);
if (ret < 0) {
- dev_err(pm2->dev, "Failed to enable"
- "pm2xxx ac charger\n");
+ dev_err(pm2->dev,
+ "Failed to enable pm2xxx ac charger\n");
goto error_occured;
}
@@ -809,8 +808,8 @@ static int pm2xxx_charger_ac_en(struct ux500_charger *charger,
ret = pm2xxx_charging_disable_mngt(pm2);
if (ret < 0) {
- dev_err(pm2->dev, "failed to disable"
- "pm2xxx ac charger\n");
+ dev_err(pm2->dev,
+ "failed to disable pm2xxx ac charger\n");
goto error_occured;
}
--
2.15.1