X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Documentation%2Fgpio.txt;h=792faa3c06cf7ccda5ab081dbf568276324538e5;hb=8c78926f1ce54c0766700efb5a4fcd2ee7c0edff;hp=a492d92bb098588306ddcee55f92b4935c9d3dc4;hpb=581548db3b3c0f6e25b500329eb02e3c72e7acbe;p=pandora-kernel.git diff --git a/Documentation/gpio.txt b/Documentation/gpio.txt index a492d92bb098..792faa3c06cf 100644 --- a/Documentation/gpio.txt +++ b/Documentation/gpio.txt @@ -135,7 +135,7 @@ setting up a platform_device using the GPIO, is mark its direction: int gpio_direction_input(unsigned gpio); int gpio_direction_output(unsigned gpio, int value); -The return value is zero for success, else a negative errno. It must +The return value is zero for success, else a negative errno. It should be checked, since the get/set calls don't have error returns and since misconfiguration is possible. You should normally issue these calls from a task context. However, for spinlock-safe GPIOs it's OK to use them