projects
/
platform
/
core
/
system
/
peripheral-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e810c9
)
spi: fix bug by passing value instead of pointer as parameter
90/149390/1
accepted/tizen/unified/20170912.191949
submit/tizen/20170912.074259
author
kibak.yoon
<kibak.yoon@samsung.com>
Tue, 12 Sep 2017 07:15:13 +0000
(16:15 +0900)
committer
kibak.yoon
<kibak.yoon@samsung.com>
Tue, 12 Sep 2017 07:15:13 +0000
(16:15 +0900)
Change-Id: Ifa2991a34ad1b9f150913cd45ca8719fe1760b62
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/interface/spi.c
patch
|
blob
|
history
diff --git
a/src/interface/spi.c
b/src/interface/spi.c
index
b926405
..
e0cefc0
100644
(file)
--- a/
src/interface/spi.c
+++ b/
src/interface/spi.c
@@
-307,7
+307,7
@@
int spi_read_write(int fd, unsigned char *txbuf, unsigned char *rxbuf, int lengt
xfer.rx_buf = (unsigned long)rxbuf;
xfer.len = length;
- status = ioctl(fd, SPI_IOC_MESSAGE(1), xfer);
+ status = ioctl(fd, SPI_IOC_MESSAGE(1),
&
xfer);
if (status < 0) {
char errmsg[MAX_ERR_LEN];
strerror_r(errno, errmsg, MAX_ERR_LEN);