1
0

214-spidev_h_portability.patch 482 B

1234567891011
  1. --- a/include/uapi/linux/spi/spidev.h
  2. +++ b/include/uapi/linux/spi/spidev.h
  3. @@ -112,7 +112,7 @@ struct spi_ioc_transfer {
  4. /* not all platforms use <asm-generic/ioctl.h> or _IOC_TYPECHECK() ... */
  5. #define SPI_MSGSIZE(N) \
  6. - ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << _IOC_SIZEBITS)) \
  7. + ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << 13)) \
  8. ? ((N)*(sizeof (struct spi_ioc_transfer))) : 0)
  9. #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)])