函数:

int devm_gpio_request(struct device *dev, unsigned gpio, const char *label);

功能:

向系统申请GPIO资源。
函数 devm_ 前缀,表示这是带设备资源管理版本的函数,因此在使用上面的函数时,需要指定设备的struct device指针。