summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2020-09-11 13:43:34 +0530
committerTom Rini <trini@konsulko.com>2020-09-30 11:55:22 -0400
commitd4b722e3a85f3a5704501f3a71faa43db1979209 (patch)
tree389ed8fcd0289e2bbc85b36d0870e9084c0d7074 /arch
parentbad2433151021315e04bcbb72c6c5bd2b938656b (diff)
drivers: gpio: Add a managed API to get a GPIO from the device-tree
Add managed functions to get a gpio from the devce-tree, based on a property name (minus the '-gpios' suffix) and optionally an index. When the device is unbound, the GPIO is automatically released and the data structure is freed. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions