Re: [PATCH] pio: add arch specific gpio_is_valid() function
From: David Brownell
Date: Tue Sep 07 2010 - 14:10:35 EST
--- On Mon, 9/6/10, Ryan Mallon <ryan@xxxxxxxxxxxxxxxx> wrote:
> > The intent of my patch was to keep gpio_is_valid
> simple, but add
> a simple check for architectures where the base gpio is not
> zero. Will
> wait and see what David has to say.
NAK still. You're trying to abuse gpio_is_valid(),
which I see no need to support.
In terms of GPIO framework architecture, zero is
the first GPIO in all cases, and is always
a valid GPIO number, even if it's not
requestable/swritable/readable on a given board.
Whether it's usable on a given platform depends
on whether a GPIO controller is registered which
claims numbers 0..N ... (assuming gpiolib in use).
--
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/