Thread (47 messages) 47 messages, 7 authors, 2014-07-24

[alsa-devel] [PATCH 2/4] ASoC: s3c64xx/smartq: use dynamic registration

From: broonie@kernel.org (Mark Brown)
Date: 2014-07-15 10:40:15
Also in: alsa-devel, linux-gpio

On Tue, Jul 15, 2014 at 04:36:20PM +0900, Alexandre Courbot wrote:
Direction and initial value, on the other hand, are clearly properties
that ought to be set by the driver itself. Thus my expectation here
would be that the driver sets the GPIO direction and initial value as
soon as it gets it using gpiod_direction_output(). In other words,
Well, it's a bit of a mix really - from a hardware point of view they
normally are actually often fixed.
there is no replacement for gpio_request_one() with the gpiod
interface. Is there any use-case that cannot be covered by calling
gpiod_direction_output() right after gpiod_get()? AFAICT this is what
gpio_request_one() was doing anyway.
Right, the original goal was to provide a better interface for
requesting a GPIO - it saves a lot of error handling code throughout the
kernel and avoids the possibility of bugs due to users forgetting to
mark the directio for the GPIO.  Having a direct replacement also makes
conversions to gpiod easier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140715/ceaf2154/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help