aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-gpio.c
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2014-02-04 01:58:09 -0500
committerMark Brown <broonie@linaro.org>2014-02-04 06:17:30 -0500
commite1bde3b11fedace5042f0232339da90bc85666af (patch)
tree1c66eced8e5dbda8ea9a5c2c480724837dabdb97 /drivers/spi/spi-gpio.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
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>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r--drivers/spi/spi-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index 7beeb29472ac..dd4fe5036220 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -250,7 +250,7 @@ static int spi_gpio_setup(struct spi_device *spi)
250 /* 250 /*
251 * ... otherwise, take it from spi->controller_data 251 * ... otherwise, take it from spi->controller_data
252 */ 252 */
253 cs = (unsigned int) spi->controller_data; 253 cs = (unsigned int)(uintptr_t) spi->controller_data;
254 } 254 }
255 255
256 if (!spi->controller_state) { 256 if (!spi->controller_state) {