Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1228047 > unrolled thread

[PATCH v2 1/2] Fixed ds1390_get_reg returned value

Started byIvan Grimaldi <grimaldi.ivan@gmail.com>
First post2015-09-18 17:20 +0200
Last post2015-09-18 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 1/2] Fixed ds1390_get_reg returned value Ivan Grimaldi <grimaldi.ivan@gmail.com> - 2015-09-18 17:20 +0200

#1228047 — [PATCH v2 1/2] Fixed ds1390_get_reg returned value

FromIvan Grimaldi <grimaldi.ivan@gmail.com>
Date2015-09-18 17:20 +0200
Subject[PATCH v2 1/2] Fixed ds1390_get_reg returned value
Message-ID<qa5Ca-6mB-9@gated-at.bofh.it>
spi_write_then_read puts in rx_buf the received data starting from
the first byte of the rx_buf

Signed-off-by: Ivan Grimaldi <grimaldi.ivan@gmail.com>
---
 drivers/rtc/rtc-ds1390.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c
index e67bfcb..a4303b4 100644
--- a/drivers/rtc/rtc-ds1390.c
+++ b/drivers/rtc/rtc-ds1390.c
@@ -62,7 +62,7 @@ static int ds1390_get_reg(struct device *dev, unsigned char address,
 	if (status != 0)
 		return status;
 
-	*data = chip->txrx_buf[1];
+	*data = chip->txrx_buf[0];
 
 	return 0;
 }
-- 
2.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web