51CTO博客已为您找到关于devm_gpio_request_one 返回值的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及devm_gpio_request_one 返回值问答内容。更多devm_gpio_request_one 返回值相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
先把 C 提交 及 B 批次全部回退,再使用cherry-pick命令将 C 提交重新再生成一个新的提交 C'',这样就实现了将 B提交回退的需求。完整的过程如下:
gpio = pin->gpio;if(!gpio_is_valid(gpio)) { dev_err(dev,"invalid gpio: %d\n", gpio);return-EINVAL; } pinstate = pin->init_state; ret =devm_gpio_request_one(dev, gpio, pinstate, name[id]);if(ret == -EBUSY) { dev_warn(dev,"gpio%d already used\n", gpio);return0; }ret...
+ * + * If an GPIO allocated with this function needs to be freed + * separately, devm_gpio_free() must be used. + */ + +int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) +{ + unsigned *dr; + int rc; + + dr = devres_alloc(devm_gpio_release, si...
+ ret = devm_gpio_request_one(&pdev->dev, pdata->dvs_gpio, + dcdc->dvs_gpio_state ? GPIOF_INIT_HIGH : 0, + "DCDC DVS"); if (ret < 0) { dev_err(wm831x->dev, "Failed to get %s DVS GPIO: %d\n", dcdc->name, ret); ...