From: Laurent Pinchart Date: Wed, 27 Nov 2013 10:18:06 +0000 (+0100) Subject: spi: sh-msiof: Fix warnings due to improper casts X-Git-Tag: firefly_0821_release~176^2~4567^2~3^6~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e6006e4aec37b6e0d524dad5c8f85f49f4507f5;p=firefly-linux-kernel-4.4.55.git spi: sh-msiof: Fix warnings due to improper casts Cast pointers to uintptr_t instead of unsigned int. This fixes warnings on platforms where pointers have a different size than int. Signed-off-by: Laurent Pinchart Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index c74298cf70e2..86f822a656ef 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -421,7 +421,7 @@ static void sh_msiof_spi_chipselect(struct spi_device *spi, int is_on) } /* use spi->controller data for CS (same strategy as spi_gpio) */ - gpio_set_value((unsigned)spi->controller_data, value); + gpio_set_value((uintptr_t)spi->controller_data, value); if (is_on == BITBANG_CS_INACTIVE) { if (test_and_clear_bit(0, &p->flags)) {