On Mon, Aug 2, 2010 at 03:45, <[email protected]> wrote:
> Revision 9036 Author bhsong Date 2010-08-02 03:45:29 -0400 (Mon, 02 Aug
> 2010)
>
> Log Message
>
> power-meters: fix lost rx buffer setting for spi reading
>
> Refer to: http://blackfin.uclinux.org/gf/forummessage/91823
>
> Reported-by: Allister Mannion <[email protected]>
i think we also want:
--- drivers/staging/iio/meter/ade7753.c (revision 9038)
+++ drivers/staging/iio/meter/ade7753.c (working copy)
@@ -52,6 +52,7 @@ static int ade7753_spi_write_reg_16(stru
struct spi_transfer xfers[] = {
{
.tx_buf = st->tx,
+ .rx_buf = st->rx,
.bits_per_word = 8,
.len = 3,
}
--- drivers/staging/iio/meter/ade7758.c (revision 9038)
+++ drivers/staging/iio/meter/ade7758.c (working copy)
@@ -52,6 +52,7 @@ static int ade7758_spi_write_reg_16(stru
struct spi_transfer xfers[] = {
{
.tx_buf = st->tx,
+ .rx_buf = st->rx,
.bits_per_word = 8,
.len = 3,
}
@@ -81,6 +82,7 @@ static int ade7758_spi_write_reg_24(stru
struct spi_transfer xfers[] = {
{
.tx_buf = st->tx,
+ .rx_buf = st->rx,
.bits_per_word = 8,
.len = 4,
}
-mike
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits