Skip to contentSkip to conversation

staging: iio: adc: ad7887: Fix typos

PATCH New [email protected] 1 participant 1 message Nov 22, 2010

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 staging: iio: adc: ad7887: Fix typos

From: Michael Hennerich <[email protected]>

---
 drivers/staging/iio/adc/ad7887_core.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/iio/adc/ad7887_core.c +8 -8
index c4088a5..6859089 100644
@@ -173,8 +173,8 @@ static int __devinit ad7887_probe(struct spi_device *spi)
 			    0 : AD7887_REF_DIS);
 
 	st->xfer[0].rx_buf = &st->data[0];
-	st->xfer[0].tx_buf = &st->tx_cmd_buf[0],
-	st->xfer[0].len = 2,
+	st->xfer[0].tx_buf = &st->tx_cmd_buf[0];
+	st->xfer[0].len = 2;
 
 	spi_message_init(&st->msg[AD7887_CH0]);
 	spi_message_add_tail(&st->xfer[0], &st->msg[AD7887_CH0]);
@@ -190,20 +190,20 @@ static int __devinit ad7887_probe(struct spi_device *spi)
 				    AD7887_REF_DIS | AD7887_PM_MODE4;
 
 		st->xfer[1].rx_buf = &st->data[0];
-		st->xfer[1].tx_buf = &st->tx_cmd_buf[2],
-		st->xfer[1].len = 2,
+		st->xfer[1].tx_buf = &st->tx_cmd_buf[2];
+		st->xfer[1].len = 2;
 
 		st->xfer[2].rx_buf = &st->data[2];
-		st->xfer[2].tx_buf = &st->tx_cmd_buf[4],
-		st->xfer[2].len = 2,
+		st->xfer[2].tx_buf = &st->tx_cmd_buf[4];
+		st->xfer[2].len = 2;
 
 		spi_message_init(&st->msg[AD7887_CH0_CH1]);
 		spi_message_add_tail(&st->xfer[1], &st->msg[AD7887_CH0_CH1]);
 		spi_message_add_tail(&st->xfer[2], &st->msg[AD7887_CH0_CH1]);
 
 		st->xfer[3].rx_buf = &st->data[0];
-		st->xfer[3].tx_buf = &st->tx_cmd_buf[6],
-		st->xfer[3].len = 2,
+		st->xfer[3].tx_buf = &st->tx_cmd_buf[6];
+		st->xfer[3].len = 2;
 
 		spi_message_init(&st->msg[AD7887_CH1]);
 		spi_message_add_tail(&st->xfer[3], &st->msg[AD7887_CH1]);
Signature · 1 line
1.6.0.2