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:
447f5ca
)
spi: fix bug by passing value instead of pointer as parameter
92/149392/1
accepted/tizen/4.0/unified/20170912.184608
submit/tizen_4.0/20170912.074241
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:16:54 +0000
(16:16 +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 50f43653a79278a2729611620e7bf15c186b1b9d..cf1faac25b27650a39ff77ab74eb527196ea1271 100644
(file)
--- a/
src/interface/spi.c
+++ b/
src/interface/spi.c
@@
-311,7
+311,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);