diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-03-26 09:46:40 +0100 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2010-03-29 13:28:49 +0200 |
commit | a266fe955a55bb7a03a67f3c91033068f317b337 (patch) | |
tree | 1d363054afa5c3786cd6397d35a0e08b0d733523 /common/cmd_i2c.c | |
parent | 4a8cf3382a6fea5cccc1e2ae61a4601bf26490c3 (diff) | |
download | u-boot-imx-a266fe955a55bb7a03a67f3c91033068f317b337.zip u-boot-imx-a266fe955a55bb7a03a67f3c91033068f317b337.tar.gz u-boot-imx-a266fe955a55bb7a03a67f3c91033068f317b337.tar.bz2 |
cmd_i2c: moved a define to before the functions
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'common/cmd_i2c.c')
-rw-r--r-- | common/cmd_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index a7672cf..bf7f6d3 100644 --- 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} |