projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21a47f
)
rtc: ds1390: fix ds1390_get_reg return value
author
Ivan Grimaldi
<
[email protected]
>
Fri, 18 Sep 2015 15:27:56 +0000
(17:27 +0200)
committer
Alexandre Belloni
<
[email protected]
>
Sun, 8 Nov 2015 13:12:14 +0000
(14:12 +0100)
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 <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-ds1390.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-ds1390.c
b/drivers/rtc/rtc-ds1390.c
index e67bfcb3a1aa227a3d4fe1b25bef269dc990240c..a4303b43a36acae5bf2226e9445bba1113193ba8 100644
(file)
--- 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;
}