[PATCH v5 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree
Tom Rini
trini at konsulko.com
Thu Oct 1 16:08:12 CEST 2020
On Fri, Sep 11, 2020 at 01:43:34PM +0530, Pratyush Yadav wrote:
> From: Jean-Jacques Hiblot <jjhiblot at ti.com>
>
> 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 at ti.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Pratyush Yadav <p.yadav at ti.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201001/6887c9fc/attachment.sig>
More information about the U-Boot
mailing list