mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
rtc: ds1390: fix ds1390_get_reg return value
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]>
This commit is contained in:
parent
e21a47ff4d
commit
2ec68825fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue