Re: [PATCH v2 1/4] gpiolib: Add "unknown" direction support

From: Wolfram Sang
Date: Mon Feb 21 2011 - 04:19:27 EST



> > Sharing GPIOs in read-only mode, is indeed something that is not covered by
> > the GPIO API. It might be worth adding a gpio_request_shared, which would
> > only permit setting the direction to input. Futher gpio_request_shared
> > calls would be allowed but gpio_request calls would fail.
>
> gpio_request_shared sounds interesting, but in this case an implicit

Can you name a use-case? One reason is that we won't need to implement
it if there is no user, another one is that it could potentially weaken
abstractions?

Regards,

Wolfram

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |

Attachment: signature.asc
Description: Digital signature