spi: fix bug by passing value instead of pointer as parameter 90/149390/1 accepted/tizen/unified/20170912.191949 submit/tizen/20170912.074259
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 12 Sep 2017 07:15:13 +0000 (16:15 +0900)
committerkibak.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

index b926405..e0cefc0 100644 (file)
@@ -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);