Title: [8158] trunk/sound/soc/soc-cache.c: task[#5591]correct 8_8 read of I2C
- Revision
- 8158
- Author
- cliff
- Date
- 2010-01-14 04:54:55 -0500 (Thu, 14 Jan 2010)
Log Message
task[#5591]correct 8_8 read of I2C
Modified Paths
Diff
Modified: trunk/sound/soc/soc-cache.c (8157 => 8158)
--- trunk/sound/soc/soc-cache.c 2010-01-14 09:20:11 UTC (rev 8157)
+++ trunk/sound/soc/soc-cache.c 2010-01-14 09:54:55 UTC (rev 8158)
@@ -219,10 +219,10 @@
xfer[1].addr = client->addr;
xfer[1].flags = I2C_M_RD;
xfer[1].len = 1;
- xfer[1].buf = (u8 *)&data;
+ xfer[1].buf = &data;
- ret = i2c_transfer(client->adapter, xfer, 1);
- if (ret != 1) {
+ ret = i2c_transfer(client->adapter, xfer, 2);
+ if (ret != 2) {
dev_err(&client->dev, "i2c_transfer() returned %d\n", ret);
return 0;
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits