Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
int | devm_gpio_request (struct device *dev, unsigned gpio, const char *label) |
EXPORT_SYMBOL (devm_gpio_request) | |
int | devm_gpio_request_one (struct device *dev, unsigned gpio, unsigned long flags, const char *label) |
EXPORT_SYMBOL (devm_gpio_request_one) | |
void | devm_gpio_free (struct device *dev, unsigned int gpio) |
EXPORT_SYMBOL (devm_gpio_free) | |
devm_gpio_free - free an interrupt : device to free gpio for : gpio to free
Except for the extra argument, this function takes the same arguments and performs the same function as gpio_free(). This function instead of gpio_free() should be used to manually free GPIOs allocated with devm_gpio_request().
devm_gpio_request - request a gpio for a managed device : device to request the gpio for : gpio to allocate : the name of the requested gpio
Except for the extra argument, this function takes the same arguments and performs the same function as gpio_request(). GPIOs requested with this function will be automatically freed on driver detach.
If an GPIO allocated with this function needs to be freed separately, devm_gpio_free() must be used.
EXPORT_SYMBOL | ( | devm_gpio_request | ) |
EXPORT_SYMBOL | ( | devm_gpio_request_one | ) |
EXPORT_SYMBOL | ( | devm_gpio_free | ) |