xfer[0].flags = 0;
xfer[0].len = reg_size;
xfer[0].buf = (void *)reg;
+ xfer[0].scl_rate = 100*1000;
xfer[1].addr = i2c->addr;
xfer[1].flags = I2C_M_NOSTART;
xfer[1].len = val_size;
xfer[1].buf = (void *)val;
+ xfer[1].scl_rate = 100*1000;
ret = i2c_transfer(i2c->adapter, xfer, 2);
if (ret == 2)
xfer[0].flags = 0;
xfer[0].len = reg_size;
xfer[0].buf = (void *)reg;
+ xfer[0].scl_rate = 100*1000;
xfer[1].addr = i2c->addr;
xfer[1].flags = I2C_M_RD;
xfer[1].len = val_size;
xfer[1].buf = val;
+ xfer[1].scl_rate = 100*1000;
ret = i2c_transfer(i2c->adapter, xfer, 2);
if (ret == 2)
msg.flags = client->flags & I2C_M_TEN;
msg.len = count;
msg.buf = (char *)buf;
+ msg.scl_rate = 100 * 1000;
ret = i2c_transfer(adap, &msg, 1);
msg.flags |= I2C_M_RD;
msg.len = count;
msg.buf = buf;
+ msg.scl_rate = 100 * 1000;
ret = i2c_transfer(adap, &msg, 1);