gpio/pca953x: Fix wrong pointer type
authorDirk Eibach <eibach@gdsys.de>
Thu, 24 Feb 2011 09:20:43 +0000 (10:20 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 24 Feb 2011 15:55:02 +0000 (08:55 -0700)
commit1648237dc2053bfd6ade3ce3dca3716d53cf9dcf
treed960ad7d744261f3974f3c89ddf4d813259c36eb
parentc43766707ce26947934ae6bc4497ca5c16bc344f
gpio/pca953x: Fix wrong pointer type

pca953x_get_alt_pdata() uses uint16_t* as result type for
of_get_property(), but numeric of values are __be32.

Checking for negative values is bogus because of-property
values are unsigned by definition.
Instead check for proper property size.

v3: - assume big-endian properties
    - check property size
v2: - removed bogus check for negative property values

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/pca953x.c