Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d560040f authored by Maxime Ripard's avatar Maxime Ripard Committed by Mark Brown
Browse files

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 5cbc7ca9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,8 +62,8 @@
 */
struct spi_gpio_platform_data {
	unsigned	sck;
	unsigned	mosi;
	unsigned	miso;
	unsigned long	mosi;
	unsigned long	miso;

	u16		num_chipselect;
};