Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: spi-gpio: fix compilation warning on 64 bits systems
SPI_GPIO_NO_MOSI and SPI_GPIO_NO_MISO flags are type casted to unsigned long, yet, they are to be stored in an unsigned int field in the spi_gpio_platform_data structure. This leads to the following warning during compilation on 64 bits systems: warning: large integer implicitly truncated to unsigned type [-Woverflow] Signed-off-by: Maxime Ripard <[email protected]> Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Mark Brown <[email protected]>
- Loading branch information