Messages in this thread | | | Date | Wed, 21 Dec 2011 01:21:17 +0000 | From | Mark Brown <> | Subject | Re: [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.
| |