X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-generic%2Fgpio.h;h=bfedbe44596aa31fb2266f7e052a63401f06d181;hb=4a207e8b9a1ecc3e87d5a63bb5442dbcd50bd4b6;hp=c19e16cd21dc80cab6c42bfb9a2671ce908231dd;hpb=3dc5ea500ffc00a1b3602b5e7fe69e72908a1818;p=u-boot diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index c19e16cd21..bfedbe4459 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -42,10 +42,11 @@ */ /** - * Request ownership of a GPIO. + * Request a gpio. This should be called before any of the other functions + * are used on this gpio. * - * @param gpio GPIO number - * @param label Name given to the GPIO + * @param gp GPIO number + * @param label User label for this GPIO * @return 0 if ok, -1 on error */ int gpio_request(unsigned gpio, const char *label); @@ -93,5 +94,4 @@ int gpio_get_value(unsigned gpio); * @return 0 if ok, -1 on error */ int gpio_set_value(unsigned gpio, int value); - #endif /* _ASM_GENERIC_GPIO_H_ */