[PATCH] gpio: Fix wrong pointer type in pca953x
From: Dirk Eibach
Date: Tue Feb 22 2011 - 03:56:57 EST
pca953x_get_alt_pdata() uses uint16_t* as result type for
of_get_property(), but numeric of values are u32.
Signed-off-by: Dirk Eibach <eibach@xxxxxxxx>
---
drivers/gpio/pca953x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c
index a261972..d79e031 100644
--- a/drivers/gpio/pca953x.c
+++ b/drivers/gpio/pca953x.c
@@ -448,7 +448,7 @@ pca953x_get_alt_pdata(struct i2c_client *client)
{
struct pca953x_platform_data *pdata;
struct device_node *node;
- const uint16_t *val;
+ const u32 *val;
node = client->dev.of_node;
if (node == NULL)
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/