diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-13 00:32:14 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-13 09:20:41 +0200 |
commit | f6e3a1fa92f61083885178101e973c86b419a6f7 (patch) | |
tree | 2629e15fe256a1ebbf3f8544083ae2122e048916 /board/trab/cmd_trab.c | |
parent | 253cb831f5861358a7fa673305cdf7ded1096f44 (diff) | |
download | u-boot-imx-f6e3a1fa92f61083885178101e973c86b419a6f7.zip u-boot-imx-f6e3a1fa92f61083885178101e973c86b419a6f7.tar.gz u-boot-imx-f6e3a1fa92f61083885178101e973c86b419a6f7.tar.bz2 |
trab: rename spi_init()
The local board-specific spi_init() function conflicts with the common SPI
layer, so rename it to something board-specific.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/trab/cmd_trab.c')
-rw-r--r-- | board/trab/cmd_trab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/trab/cmd_trab.c b/board/trab/cmd_trab.c index d0465fb..ae6f7c6 100644 --- a/board/trab/cmd_trab.c +++ b/board/trab/cmd_trab.c @@ -106,7 +106,7 @@ extern int i2c_write (uchar, uint, int , uchar* , int); extern int i2c_read (uchar, uint, int , uchar* , int); extern void tsc2000_reg_init (void); extern s32 tsc2000_contact_temp (void); -extern void spi_init(void); +extern void tsc2000_spi_init(void); /* function declarations */ int do_dip (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); @@ -175,7 +175,7 @@ int do_burn_in (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) led_init (); global_vars_init (); test_function_table_init (); - spi_init (); + tsc2000_spi_init (); if (global_vars_write_to_eeprom () != 0) { printf ("%s: error writing global_vars to eeprom\n", @@ -336,7 +336,7 @@ int do_contact_temp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 1; } - spi_init (); + tsc2000_spi_init (); contact_temp = tsc2000_contact_temp(); printf ("%d degree C * 100\n", contact_temp) ; @@ -859,7 +859,7 @@ int do_temp_log (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) delay = simple_strtoul(argv[1], NULL, 10); } - spi_init (); + tsc2000_spi_init (); while (1) { #if defined(CONFIG_CMD_DATE) |