From: Tom Rini Date: Thu, 1 Oct 2020 10:08:12 -0400 Subject: [PATCH v5 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree In-Reply-To: <20200911081335.23310-2-p.yadav@ti.com> References: <20200911081335.23310-1-p.yadav@ti.com> <20200911081335.23310-2-p.yadav@ti.com> Message-ID: <20201001140812.GU14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 released and the > data structure is freed. > > Signed-off-by: Jean-Jacques Hiblot > Reviewed-by: Simon Glass > Signed-off-by: Pratyush Yadav 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: