Re: [PATCH soc-camera] Replace NO_GPIO with gpio_is_valid()
- Date: Fri, 15 Feb 2008 12:13:38 -0800 (PST)
- From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
- Subject: Re: [PATCH soc-camera] Replace NO_GPIO with gpio_is_valid()
On Fri, 15 Feb 2008, David Brownell wrote:
> On Friday 15 February 2008, Trent Piepho wrote:
> > that hoping that -EINVAL happens to be invalid on every
> > platform.
>
> Negative numbers have always been guaranteed to be invalid GPIO numbers.
> That's been part of the interface spec from day one.
Ahh, and so it has been:
GPIOs are identified by unsigned integers in the range 0..MAX_INT.
That reserves "negative" numbers for other purposes like marking
signals as "not available on this board", or indicating faults.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list