[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111221012117.GD13529@sirena.org.uk>
Date: Wed, 21 Dec 2011 01:21:17 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: John Crispin <blogic@...nwrt.org>
Cc: Grant Likely <grant.likely@...retlab.ca>,
linux-kernel@...r.kernel.org
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists