mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
5cbc7ca987
commit
d560040f7d
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@
|
||||||
*/
|
*/
|
||||||
struct spi_gpio_platform_data {
|
struct spi_gpio_platform_data {
|
||||||
unsigned sck;
|
unsigned sck;
|
||||||
unsigned mosi;
|
unsigned long mosi;
|
||||||
unsigned miso;
|
unsigned long miso;
|
||||||
|
|
||||||
u16 num_chipselect;
|
u16 num_chipselect;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue