gpio: mcp23s08: fix casting caused build warning
PATCH 1/1 gpio: mcp23s08: fix casting caused build warning
Signed-off-by SeongJae Park <[email protected]>
--- drivers/gpio/gpio-mcp23s08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mcp23s08.c +1 -1
@@ -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
Quoted 1 line · SeongJae Park
Signed-off-by SeongJae Park <[email protected]>
Patch applied.
Yours,
Linus Walleij