* [PATCH] gpio: mcp23s08: fix casting caused build warning
@ 2014-01-18 4:53 SeongJae Park
2014-01-20 8:10 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: SeongJae Park @ 2014-01-18 4:53 UTC (permalink / raw)
To: gregkh, linus.walleij, gnurou; +Cc: linux-gpio, linux-kernel, SeongJae Park
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
drivers/gpio/gpio-mcp23s08.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c
index b16401e..97198ef 100644
--- a/drivers/gpio/gpio-mcp23s08.c
+++ b/drivers/gpio/gpio-mcp23s08.c
@@ -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) {
--
1.8.3.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: mcp23s08: fix casting caused build warning
2014-01-18 4:53 [PATCH] gpio: mcp23s08: fix casting caused build warning SeongJae Park
@ 2014-01-20 8:10 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-01-20 8:10 UTC (permalink / raw)
To: SeongJae Park, Lars Poeschel
Cc: Greg KH, Alexandre Courbot, linux-gpio, linux-kernel
On Sat, Jan 18, 2014 at 5:53 AM, SeongJae Park <sj38.park@gmail.com> wrote:
> Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-20 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-18 4:53 [PATCH] gpio: mcp23s08: fix casting caused build warning SeongJae Park
2014-01-20 8:10 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®