diff options
author | NeilBrown <neilb@suse.de> | 2013-11-01 03:33:45 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-01-28 02:28:42 +0100 |
commit | 9334129e8e956edfd51da37d5e5278478235c7b2 (patch) | |
tree | 2fb3451c09c97fde621ab6af0b7654502edfc973 /REPORTING-BUGS | |
parent | Linux 3.13-rc6 (diff) | |
download | linux-9334129e8e956edfd51da37d5e5278478235c7b2.tar.xz linux-9334129e8e956edfd51da37d5e5278478235c7b2.zip |
LEDS: tca6507 - fix bugs in parsing of device-tree configuration.
1/ The led_info array must be allocated to allow the full number
of LEDs even if not all are present. The array maybe be sparsely
filled but it is indexed by device address so we must at least
allocate as many slots as the highest address used. It is easiest
just to allocate all 7.
2/ range check the 'reg' value properly.
3/ led.flags must be initialised to zero, else all leds could
be treated as GPIOs (depending on what happens to be on the stack).
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions