diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cs8900.c | 4 | ||||
-rw-r--r-- | drivers/cs8900.h | 2 | ||||
-rw-r--r-- | drivers/s3c24x0_i2c.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/drivers/cs8900.c b/drivers/cs8900.c index b9fac8c..d35332c 100644 --- a/drivers/cs8900.c +++ b/drivers/cs8900.c @@ -296,7 +296,7 @@ int cs8900_e2prom_read(unsigned char addr, unsigned short *value) /* write a 16-bit word into the EEPROM */ /***********************************************************/ -void cs8900_e2prom_write(unsigned char addr, unsigned short value) +int cs8900_e2prom_write(unsigned char addr, unsigned short value) { cs8900_e2prom_ready(); put_reg(PP_EECMD, EEPROM_WRITE_EN); @@ -307,7 +307,7 @@ void cs8900_e2prom_write(unsigned char addr, unsigned short value) put_reg(PP_EECMD, EEPROM_WRITE_DIS); cs8900_e2prom_ready(); - return; + return 0; } #endif /* COMMANDS & CFG_NET */ diff --git a/drivers/cs8900.h b/drivers/cs8900.h index dbfda3c..d772cad 100644 --- a/drivers/cs8900.h +++ b/drivers/cs8900.h @@ -253,6 +253,6 @@ #define EEPROM_ERASE_CMD 0x0300 extern int cs8900_e2prom_read(uchar, ushort *); -extern void cs8900_e2prom_write(uchar, ushort); +extern int cs8900_e2prom_write(uchar, ushort); #endif /* CONFIG_DRIVER_CS8900 */ diff --git a/drivers/s3c24x0_i2c.c b/drivers/s3c24x0_i2c.c index bf435c9..b501761 100644 --- a/drivers/s3c24x0_i2c.c +++ b/drivers/s3c24x0_i2c.c @@ -64,10 +64,12 @@ static int GetIICSDA(void) return (rGPEDAT & 0x8000) >> 15; } +#if 0 static void SetIICSDA(int x) { rGPEDAT = (rGPEDAT & ~0x8000) | (x&1) << 15; } +#endif static void SetIICSCL(int x) { |