diff options
| author | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 16:45:02 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 16:45:02 +0200 | 
| commit | 77ddac9480d63a80b6bb76d7ee4dcc2d1070867e (patch) | |
| tree | e9563b2f28ea59062b90bb5712f141e8e9798aee /common/cmd_i2c.c | |
| parent | 17a8b276ba2b3499b75cd60b0b5289dbbea7967b (diff) | |
| download | olio-uboot-2014.01-77ddac9480d63a80b6bb76d7ee4dcc2d1070867e.tar.xz olio-uboot-2014.01-77ddac9480d63a80b6bb76d7ee4dcc2d1070867e.zip | |
Cleanup for GCC-4.x
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 2e44c7fde..c543bb531 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -461,7 +461,7 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])  	 */  	do {  		printf("%08lx:", addr); -		if(i2c_read(chip, addr, alen, (char *)&data, size) != 0) { +		if(i2c_read(chip, addr, alen, (uchar *)&data, size) != 0) {  			puts ("\nError reading the chip,\n");  		} else {  			data = cpu_to_be32(data); @@ -510,7 +510,7 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])  				 */  				reset_cmd_timeout();  #endif -				if(i2c_write(chip, addr, alen, (char *)&data, size) != 0) { +				if(i2c_write(chip, addr, alen, (uchar *)&data, size) != 0) {  					puts ("Error writing the chip.\n");  				}  #ifdef CFG_EEPROM_PAGE_WRITE_DELAY_MS |