Skip to contentSkip to conversation

gpio: mcp23s08: fix casting caused build warning

PATCH In review SeongJae Park 2 participants 2 messages Jan 18, 2014 – Jan 20, 2014 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: mcp23s08: fix casting caused build warning

---
 drivers/gpio/gpio-mcp23s08.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mcp23s08.c +1 -1
index b16401e..97198ef 100644
@@ -640,7 +640,7 @@ static int mcp23s08_probe(struct spi_device *spi)
 
 	match = of_match_device(of_match_ptr(mcp23s08_spi_of_match), &spi->dev);
 	if (match) {
-		type = (int)match->data;
+		type = (int)(uintptr_t)match->data;
 		status = of_property_read_u32(spi->dev.of_node,
 			    "microchip,spi-present-mask", &spi_present_mask);
 		if (status) {
Signature · 1 line
1.8.3.2