From: Maxime Ripard Date: Thu, 31 Jan 2013 10:12:56 +0000 (+0100) Subject: spi: spi-gpio: fix compilation warning on 64 bits systems X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d560040f7d6fbe0a2990b8f6edca1815e19e72f5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Fengguang Wu Signed-off-by: Mark Brown --- diff --git a/include/linux/spi/spi_gpio.h b/include/linux/spi/spi_gpio.h index 369b3d7d5b95..1634ce31c06d 100644 --- a/include/linux/spi/spi_gpio.h +++ b/include/linux/spi/spi_gpio.h @@ -62,8 +62,8 @@ */ struct spi_gpio_platform_data { unsigned sck; - unsigned mosi; - unsigned miso; + unsigned long mosi; + unsigned long miso; u16 num_chipselect; };