diff options
author | Dirk Eibach <eibach@gdsys.de> | 2011-02-24 09:20:43 (GMT) |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-24 15:55:02 (GMT) |
commit | 1648237dc2053bfd6ade3ce3dca3716d53cf9dcf (patch) | |
tree | d960ad7d744261f3974f3c89ddf4d813259c36eb /drivers/spi | |
parent | c43766707ce26947934ae6bc4497ca5c16bc344f (diff) | |
download | linux-fsl-qoriq-1648237dc2053bfd6ade3ce3dca3716d53cf9dcf.tar.xz |
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>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions