spi: sh-msiof: Fix warnings due to improper casts
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 10:18:06 +0000 (11:18 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 27 Nov 2013 15:49:07 +0000 (15:49 +0000)
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 <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-msiof.c

index c74298cf70e2406d8972f4fe75cc2fcd59a15864..86f822a656efca605d04b3a20b72fae9bdecae59 100644 (file)
@@ -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)) {
This page took 0.025944 seconds and 5 git commands to generate.