projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a8cf33
)
cmd_i2c: moved a define to before the functions
author
Frans Meulenbroeks
<fransmeulenbroeks@gmail.com>
Fri, 26 Mar 2010 08:46:40 +0000
(09:46 +0100)
committer
Heiko Schocher
<hs@denx.de>
Mon, 29 Mar 2010 11:28:49 +0000
(13:28 +0200)
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
common/cmd_i2c.c
patch
|
blob
|
history
diff --git
a/common/cmd_i2c.c
b/common/cmd_i2c.c
index a7672cf7606367182b85ce766a50cdc5527aaa13..bf7f6d352cea0120a646b60d66a2c847fd47bcd2 100644
(file)
--- a/
common/cmd_i2c.c
+++ b/
common/cmd_i2c.c
@@
-130,6
+130,8
@@
DECLARE_GLOBAL_DATA_PTR;
#endif
+#define DISP_LINE_LEN 16
+
/* TODO: Implement architecture-specific get/set functions */
unsigned int __def_i2c_get_bus_speed(void)
{
@@
-148,8
+150,6
@@
int __def_i2c_set_bus_speed(unsigned int speed)
int i2c_set_bus_speed(unsigned int)
__attribute__((weak, alias("__def_i2c_set_bus_speed")));
-#define DISP_LINE_LEN 16
-
/*
* Syntax:
* i2c read {i2c_chip} {devaddr}{.0, .1, .2} {len} {memaddr}