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

Alan Cox alan at lxorguk.ukuu.org.uk
Tue Sep 7 20:11:12 EDT 2010


On Tue, 7 Sep 2010 16:44:55 -0700 (PDT)
David Brownell <david-b at pacbell.net> wrote:

> 
> 
> --- On Tue, 9/7/10, Alan Cox <alan at lxorguk.ukuu.org.uk> 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



More information about the linux-arm-kernel mailing list