Title: [7950] trunk/sound/soc/codecs/adau1371.c: bug[#5741]snd_soc_codec's hw_read API has changed,so use the i2c read method directly
- Revision
- 7950
- Author
- cliff
- Date
- 2009-12-07 22:03:12 -0500 (Mon, 07 Dec 2009)
Log Message
bug[#5741]snd_soc_codec's hw_read API has changed,so use the i2c read method directly
Modified Paths
Diff
Modified: trunk/sound/soc/codecs/adau1371.c (7949 => 7950)
--- trunk/sound/soc/codecs/adau1371.c 2009-12-08 03:00:39 UTC (rev 7949)
+++ trunk/sound/soc/codecs/adau1371.c 2009-12-08 03:03:12 UTC (rev 7950)
@@ -90,7 +90,7 @@
return -EIO;
}
/* perform the read */
- if (codec->hw_read(codec->control_data, buf, 1) != 1) {
+ if (i2c_master_recv(codec->control_data, buf, 1) != 1) {
dev_err(codec->dev, "hw_read failed.\n");
return -EIO;
}
@@ -1086,7 +1086,6 @@
codec = &adau1371->codec;
codec->private_data = adau1371;
codec->hw_write = (hw_write_t)i2c_master_send;
- codec->hw_read = (hw_read_t)i2c_master_recv;
i2c_set_clientdata(i2c, adau1371);
codec->control_data = i2c;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits