Re: [PATCH] GPIO: add bindings for managed devices

From: Mark Brown
Date: Tue Dec 20 2011 - 20:21:19 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/