cmd_i2c: moved a define to before the functions

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
This commit is contained in:
Frans Meulenbroeks 2010-03-26 09:46:40 +01:00 committed by Heiko Schocher
parent 4a8cf3382a
commit a266fe955a

View file

@ -130,6 +130,8 @@ DECLARE_GLOBAL_DATA_PTR;
#endif #endif
#define DISP_LINE_LEN 16
/* TODO: Implement architecture-specific get/set functions */ /* TODO: Implement architecture-specific get/set functions */
unsigned int __def_i2c_get_bus_speed(void) 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) int i2c_set_bus_speed(unsigned int)
__attribute__((weak, alias("__def_i2c_set_bus_speed"))); __attribute__((weak, alias("__def_i2c_set_bus_speed")));
#define DISP_LINE_LEN 16
/* /*
* Syntax: * Syntax:
* i2c read {i2c_chip} {devaddr}{.0, .1, .2} {len} {memaddr} * i2c read {i2c_chip} {devaddr}{.0, .1, .2} {len} {memaddr}