alistair23-linux/include/linux/spi
Stephen Warren b6aa23ccae spi: fix SPI_BIT_MASK so it always fits into 32-bits
On a 64-bit platform, ~0UL fills 64-bits, which causes SPI_BIT_MASK(32)
not to fit into 32 bits. This causes a warning when the result is assigned
to a 32-bit variable. Use ~0U instead to prevent this. This fixes:

drivers/spi/spi-gpio.c: In function 'spi_gpio_probe':
drivers/spi/spi-gpio.c:446:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-02 11:31:22 +01:00
..
74x164.h
ad7877.h
ad7879.h
ads7846.h
at73c213.h
at86rf230.h
corgi_lcd.h
ds1305.h
eeprom.h
flash.h
ifx_modem.h
l4f00242t03.h
libertas_spi.h
lms283gf05.h
max7301.h
mc33880.h
mcp23s08.h
mmc_spi.h
mxs-spi.h
pxa2xx_spi.h
rspi.h
s3c24xx.h
sh_hspi.h
sh_msiof.h
spi.h spi: fix SPI_BIT_MASK so it always fits into 32-bits 2013-08-02 11:31:22 +01:00
spi_bitbang.h
spi_gpio.h
spi_oc_tiny.h
tdo24m.h
tle62x0.h
tsc2005.h
xilinx_spi.h spi: spi-xilinx: Add run run-time endian detection 2013-06-04 18:37:35 +01:00