Skip to content

Commit f9657b8

Browse files
charleskeepaxLee Jones
authored andcommitted
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent de4ea10 commit f9657b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mfd/arizona-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int arizona_poll_reg(struct arizona *arizona,
245245
for (i = 0; i < timeout; i++) {
246246
ret = regmap_read(arizona->regmap, reg, &val);
247247
if (ret != 0) {
248-
dev_err(arizona->dev, "Failed to read reg %u: %d\n",
248+
dev_err(arizona->dev, "Failed to read reg 0x%x: %d\n",
249249
reg, ret);
250250
continue;
251251
}
@@ -256,7 +256,7 @@ static int arizona_poll_reg(struct arizona *arizona,
256256
usleep_range(1000, 5000);
257257
}
258258

259-
dev_err(arizona->dev, "Polling reg %u timed out: %x\n", reg, val);
259+
dev_err(arizona->dev, "Polling reg 0x%x timed out: %x\n", reg, val);
260260
return -ETIMEDOUT;
261261
}
262262

0 commit comments

Comments
 (0)