projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c8c10
)
i2c: mxc: Print hex instead of decimal for bus address
author
Jagan Teki
<
[email protected]
>
Mon, 5 Dec 2016 23:00:58 +0000
(
00:00
+0100)
committer
Stefano Babic
<
[email protected]
>
Fri, 16 Dec 2016 16:15:27 +0000
(17:15 +0100)
Better to print the hex value for bus address instead of
decimal, for more readbility on bus addressing.
Before:
------
U-Boot> i2c dev 1
Setting bus to 1
i2c bus 1 at
35274752
, no gpio pinctrl state.
After:
------
U-Boot> i2c dev 1
Setting bus to 1
i2c bus 1 at 0x21a4000, no gpio pinctrl state.
Cc: Simon Glass <
[email protected]
>
Cc: Heiko Schocher <
[email protected]
>
Cc: Peng Fan <
[email protected]
>
Cc: Michael Trimarchi <
[email protected]
>
Signed-off-by: Jagan Teki <
[email protected]
>
Acked-by: Heiko Schocher <
[email protected]
>
drivers/i2c/mxc_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/mxc_i2c.c
b/drivers/i2c/mxc_i2c.c
index 6247d334a0b21b8dd6a9402365c5551e9319b4b6..03a5ce9be4c548a8b9428a8cd9e7c7df3d079e45 100644
(file)
--- a/
drivers/i2c/mxc_i2c.c
+++ b/
drivers/i2c/mxc_i2c.c
@@
-775,7
+775,7
@@
static int mxc_i2c_probe(struct udevice *bus)
*/
ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio");
if (ret < 0) {
- dev_info(dev, "i2c bus %d at
%lu
, no gpio pinctrl state.\n", bus->seq, i2c_bus->base);
+ dev_info(dev, "i2c bus %d at
0x%2lx
, no gpio pinctrl state.\n", bus->seq, i2c_bus->base);
} else {
ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios",
0, &i2c_bus->scl_gpio,