Re: [PATCH v5 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree

2020-10-01 Thread Tom Rini
On Fri, Sep 11, 2020 at 01:43:34PM +0530, Pratyush Yadav wrote: > From: Jean-Jacques Hiblot > > 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 rele

[PATCH v5 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree

2020-09-11 Thread Pratyush Yadav
From: Jean-Jacques Hiblot 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 Re