mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
spi: fix pointer-integer size mismatch warning
Fix the pointer-integer size mismatch warning below: drivers/spi/spi-gpio.c: In function ‘spi_gpio_setup’: drivers/spi/spi-gpio.c:252:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cs = (unsigned int) spi->controller_data; ^ Signed-off-by: SeongJae Park <sj38.park@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
e1bde3b11f
@ -250,7 +250,7 @@ static int spi_gpio_setup(struct spi_device *spi)
|
||||
/*
|
||||
* ... otherwise, take it from spi->controller_data
|
||||
*/
|
||||
cs = (unsigned int) spi->controller_data;
|
||||
cs = (unsigned int)(uintptr_t) spi->controller_data;
|
||||
}
|
||||
|
||||
if (!spi->controller_state) {
|
||||
|
Loading…
Reference in New Issue
Block a user