projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4ea10
)
mfd: arizona: Display register addresses in hex
author
Charles Keepax
<ckeepax@opensource.wolfsonmicro.com>
Wed, 15 Mar 2017 14:58:37 +0000
(14:58 +0000)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:05 +0000
(09:25 +0100)
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>
drivers/mfd/arizona-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/arizona-core.c
b/drivers/mfd/arizona-core.c
index e00f577db830baca9e318a763d1b728353a99989..4cb34c36a0e516cd334cc8f5ba654eb0615d86a7 100644
(file)
--- a/
drivers/mfd/arizona-core.c
+++ b/
drivers/mfd/arizona-core.c
@@
-245,7
+245,7
@@
static int arizona_poll_reg(struct arizona *arizona,
for (i = 0; i < timeout; i++) {
ret = regmap_read(arizona->regmap, reg, &val);
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);
continue;
}
@@
-256,7
+256,7
@@
static int arizona_poll_reg(struct arizona *arizona,
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;
}