Skip to contentSkip to conversation

power: tps65910: replace error() by pr_err()

PATCH In review Felix Brack 3 participants 3 messages Dec 18, 2017 – Jan 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: tps65910: replace error() by pr_err()

The patch replaces the former error() by the new pr_err(). This makes the TPS65910 driver conform to Masahiro's patch 'treewide:replace with error() with pr_err()' introduced October 2017.

---

 drivers/power/pmic/pmic_tps65910_dm.c        | 4 ++--
 drivers/power/regulator/tps65910_regulator.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/power/pmic/pmic_tps65910_dm.c +2 -2
index 0127ce3..c65f38f 100644
@@ -32,7 +32,7 @@ static int pmic_tps65910_write(struct udevice *dev, uint reg, const u8 *buffer,
 
 	ret = dm_i2c_write(dev, reg, buffer, len);
 	if (ret)
-		error("%s write error on register %02x\n", dev->name, reg);
+		pr_err("%s write error on register %02x\n", dev->name, reg);
 
 	return ret;
 }
@@ -44,7 +44,7 @@ static int pmic_tps65910_read(struct udevice *dev, uint reg, u8 *buffer,
 
 	ret = dm_i2c_read(dev, reg, buffer, len);
 	if (ret)
-		error("%s read error on register %02x\n", dev->name, reg);
+		pr_err("%s read error on register %02x\n", dev->name, reg);
 
 	return ret;
 }
drivers/power/regulator/tps65910_regulator.c +2 -2
index 5e2ec8f..ad952e5 100644
@@ -340,11 +340,11 @@ static int buck_set_vdd1_vdd2_value(struct udevice *dev, int uV)
 
 	/* check setpoint is within limits */
 	if (uV < uc_pdata->min_uV) {
-		error("voltage %duV for %s too low\n", uV, dev->name);
+		pr_err("voltage %duV for %s too low\n", uV, dev->name);
 		return -EINVAL;
 	}
 	if (uV > uc_pdata->max_uV) {
-		error("voltage %duV for %s too high\n", uV, dev->name);
+		pr_err("voltage %duV for %s too high\n", uV, dev->name);
 		return -EINVAL;
 	}
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 power: tps65910: replace error() by pr_err()

Quoted 11 lines · Felix Brack

The patch replaces the former error() by the new pr_err(). This makes the TPS65910 driver conform to Masahiro's patch 'treewide:replace with error() with pr_err()' introduced October 2017.

---

 drivers/power/pmic/pmic_tps65910_dm.c        | 4 ++--
 drivers/power/regulator/tps65910_regulator.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
#2 lore raw
In reply to Felix Brack
Quoted 7 lines · Felix Brack

The patch replaces the former error() by the new pr_err(). This makes the TPS65910 driver conform to Masahiro's patch 'treewide:replace with error() with pr_err()' introduced October 2017.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180101/dd051f67/attachment.sig>