Thread (6 messages) 6 messages, 2 authors, 2016-06-18

Re: [RFC] qnap-tsx51: add new driver for leds and button support on QNAP TS-x51 series

From: Linus Walleij <hidden>
Date: 2016-06-17 21:02:48

On Wed, Jun 15, 2016 at 2:45 AM, Vincent Pelletier
[off-list ref] wrote:
So I wonder if it makes sense at all for a driver to both define a gpio
lookup table and then look for each gpio it just defined.

Maybe I am doing it wrong and/or at the wrong level ?
Well ask yourself what you are doing I guess, GPIO is
General Purpose Input Output, a trap some people fall into
is confusing that with their special purpose input/outputs,
and sometimes they are input-only or output-only on top of
that. That is not GPIO.

So what is the use case for these electronics? If it is not
supposed to be used by misc input/output, it is not GPIO,
and it is better for the driver to manage it at will.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help