Skip to content
Commit d379ee8a authored by David Brownell's avatar David Brownell Committed by Richard Purdie
Browse files

leds: just ignore invalid GPIOs in leds-gpio



Sometimes it's awkward to make sure that the array in the
platform_data handed to the leds-gpio driver has only valid
data ... some leds may not be always available, and coping
with that currently requires patching or rebuilding the array.

This patch fixes that by making it be OK to pass an invalid
GPIO (such as "-EINVAL") ... such table entries are skipped.

[rpurdie@linux.intel.com: adjusted to apply against other led tree changes]
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Tested-by: default avatarDiego Dompe <diego.dompe@ridgerun.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 7fbc3a9b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment