
22 Sep
2013
22 Sep
'13
2:55 p.m.
On Sat, Sep 21, 2013 at 8:31 PM, Po Liu Po.Liu@freescale.com wrote:
+void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) +{
int ret = i2c_read(i2c_address, 0, 2, (uchar *)spd,
(uchar) is wrong.
int i2c_read(uint8_t chip, unsigned int addr, int alen, uint8_t *buffer, int len);
The type for this parameter is uint8_t.
The proper fix is to change the i2c_read() function should be changed to take a void*.