commit | d4b722e3a85f3a5704501f3a71faa43db1979209 | [log] [tgz] |
---|---|---|
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | Fri Sep 11 13:43:34 2020 +0530 |
committer | Tom Rini <trini@konsulko.com> | Wed Sep 30 11:55:22 2020 -0400 |
tree | 389ed8fcd0289e2bbc85b36d0870e9084c0d7074 | |
parent | bad2433151021315e04bcbb72c6c5bd2b938656b [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>