public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: Fix wrong pointer type in pca953x
@ 2011-02-22  8:56 Dirk Eibach
  2011-02-22 12:36 ` Dan Carpenter
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Eibach @ 2011-02-22  8:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dirk Eibach

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@gdsys.de>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-24 15:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22  8:56 [PATCH] gpio: Fix wrong pointer type in pca953x Dirk Eibach
2011-02-22 12:36 ` Dan Carpenter
2011-02-22 12:52   ` Eibach, Dirk
2011-02-22 13:28   ` [PATCH v2] " Dirk Eibach
2011-02-24  9:20   ` [PATCH v3] " Dirk Eibach
2011-02-24 15:56     ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox