Commit b5108585 authored by Jan Kiszka's avatar Jan Kiszka

drivers: spi: Fix compiler warning

Addresses "warning: cast from pointer to integer of different size".
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 2cc2f54b
Pipeline #5845 passed with stage
in 22 minutes and 31 seconds
...@@ -181,7 +181,7 @@ static int spi_master_ioctl_rt(struct rtdm_fd *fd, ...@@ -181,7 +181,7 @@ static int spi_master_ioctl_rt(struct rtdm_fd *fd,
case SPI_RTIOC_TRANSFER_N: case SPI_RTIOC_TRANSFER_N:
ret = -EINVAL; ret = -EINVAL;
if (master->ops->transfer_iobufs_n) { if (master->ops->transfer_iobufs_n) {
len = (int)arg; len = (long)arg;
rtdm_mutex_lock(&master->bus_lock); rtdm_mutex_lock(&master->bus_lock);
ret = do_chip_select(slave); ret = do_chip_select(slave);
if (ret == 0) { if (ret == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment