diff options
author | Phil Reid <[email protected]> | 2019-07-16 08:24:36 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-07-25 09:18:21 +0200 |
commit | dbc4f989c878fe101fb7920e9609e8ec44e097cd (patch) | |
tree | a00c728b09a195315262bcf3b3d22e7532ae2dff /tools/perf/util/trace-event-scripting.c | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
Staging: fbtft: Fix probing of gpio descriptor
Conversion to use gpio descriptors broke all gpio lookups as
devm_gpiod_get_index was converted to use dev->driver->name for
the gpio name lookup. Fix this by using the name param. In
addition gpiod_get post-fixes the -gpios to the name so that
shouldn't be included in the call. However this then breaks the
of_find_property call to see if the gpio entry exists as all
fbtft treats all gpios as optional. So use devm_gpiod_get_index_optional
instead which achieves the same thing and is simpler.
Nishad confirmed the changes where only ever compile tested.
Fixes: c440eee1a7a1 ("Staging: fbtft: Switch to the gpio descriptor interface")
Reviewed-by: Nicolas Saenz Julienne <[email protected]>
Tested-by: Nicolas Saenz Julienne <[email protected]>
Tested-by: Jan Sebastian Götte <[email protected]>
Signed-off-by: Phil Reid <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions