summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorMaxime Ripard2013-01-31 11:12:56 +0100
committerMark Brown2013-01-31 11:25:44 +0100
commitd560040f7d6fbe0a2990b8f6edca1815e19e72f5 (patch)
tree0cec0d54116d6b10e640108e76476c5e03933ba9 /include/linux/spi
parentspi: spi-omap2-mcspi.c: Toggle CS after each word (diff)
downloadkernel-qcow2-linux-d560040f7d6fbe0a2990b8f6edca1815e19e72f5.tar.gz
kernel-qcow2-linux-d560040f7d6fbe0a2990b8f6edca1815e19e72f5.tar.xz
kernel-qcow2-linux-d560040f7d6fbe0a2990b8f6edca1815e19e72f5.zip
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 <maxime.ripard@free-electrons.com> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/spi_gpio.h4
1 files changed, 2 insertions, 2 deletions
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;
};