mfd: arizona: Display register addresses in hex
Register addresses are normally displayed in hex throughout the Arizona driver. Update the arizona_poll_reg function to follow this convention. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>hifive-unleashed-5.1
parent
de4ea10ad7
commit
f9657b8f75
|
@ -245,7 +245,7 @@ static int arizona_poll_reg(struct arizona *arizona,
|
||||||
for (i = 0; i < timeout; i++) {
|
for (i = 0; i < timeout; i++) {
|
||||||
ret = regmap_read(arizona->regmap, reg, &val);
|
ret = regmap_read(arizona->regmap, reg, &val);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dev_err(arizona->dev, "Failed to read reg %u: %d\n",
|
dev_err(arizona->dev, "Failed to read reg 0x%x: %d\n",
|
||||||
reg, ret);
|
reg, ret);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ static int arizona_poll_reg(struct arizona *arizona,
|
||||||
usleep_range(1000, 5000);
|
usleep_range(1000, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
dev_err(arizona->dev, "Polling reg %u timed out: %x\n", reg, val);
|
dev_err(arizona->dev, "Polling reg 0x%x timed out: %x\n", reg, val);
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue