lkml.org 
[lkml]   [2011]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] GPIO: add bindings for managed devices
On Tue, Dec 20, 2011 at 09:40:21PM +0100, John Crispin wrote:

> +/**
> + * devm_gpio_request - request a gpio for a managed device
> + * @dev: device to request the gpio for
> + * @gpio: gpio to allocate
> + * @label: the name of the requested gpio

It'd be nicer to wrap gpio_request_one() as that's a bit neater from the
driver point of view since it combines the request with the mandatory
configuration step to put the GPIO into the appropraite mode.


\
 
 \ /
  Last update: 2011-12-21 02:23    [W:0.040 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site