[PATCH v2 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree
Pratyush Yadav
p.yadav at ti.com
Wed Jun 17 09:59:31 CEST 2020
On 16/06/20 05:37PM, Simon Glass wrote:
> Hi Pratyush,
>
> On Fri, 29 May 2020 at 15:38, Pratyush Yadav <p.yadav at ti.com> 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>
> > ---
> > drivers/gpio/gpio-uclass.c | 70 ++++++++++++++++++++++++++++++++++++++
> > include/asm-generic/gpio.h | 47 +++++++++++++++++++++++++
> > 2 files changed, 117 insertions(+)
>
> Is there a change log for this one?
No changes to this patch from v1 other than adding a couple #include to
fix compilation errors.
--
Regards,
Pratyush Yadav
Texas Instruments India
More information about the U-Boot
mailing list