spi: spi-gpio: fix compilation warning on 64 bits systems
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 31 Jan 2013 10:12:56 +0000 (11:12 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 31 Jan 2013 10:25:44 +0000 (18:25 +0800)
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 <maxime.ripard@free-electrons.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found