Re: [PATCH] pio: add arch specific gpio_is_valid() function

From: Alan Cox
Date: Tue Sep 07 2010 - 19:52:12 EST


On Tue, 7 Sep 2010 16:44:55 -0700 (PDT)
David Brownell <david-b@xxxxxxxxxxx> wrote:

>
>
> --- On Tue, 9/7/10, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > >      device->output_pin = -EINVAL;
> >
> > gpio numbers are unsigned in the rest of the API
>
> Minor goof; should have been "int" everywhere,
> as implied by the references to negative numbers
> in the docs... negatives not used internally, but
> preserved for external use (as above).

Ok I need to patch a couple of the intel drivers to use -1 then.

Alan
--
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/