On Wednesday 23 November 2011 10:08:58 Robert Deliën wrote:
> +extern int gpio_invalid(int gp);

if you really want to add this function, the Linux GPIO API uses:
        bool gpio_is_valid(int number);

but that doesn't negate the gpio_request() func from having to validate the 
pin given to it, so i don't see much point in providing this at this time ... 
no code should do something like:
        if (!gpio_is_valid())
                return error;
        if (gpio_request())
                return error;
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to