先把 C 提交 及 B 批次全部回退,再使用cherry-pick命令将 C 提交重新再生成一个新的提交 C'',这样就实现了将 B提交回退的需求。完整的过程如下:
51CTO博客已为您找到关于devm_gpio_request_one 返回值的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及devm_gpio_request_one 返回值问答内容。更多devm_gpio_request_one 返回值相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
}if(np) {enumof_gpio_flags flags;intgpio = of_get_named_gpio_flags(np,"reset-gpio",0, &flags);if(gpio_is_valid(gpio)) { ret =devm_gpio_request_one(&spi->dev, gpio, flags & OF_GPIO_ACTIVE_LOW ? GPIOF_OUT_INIT_LOW : GPIOF_OUT_INIT_HIGH,"ak4104 reset");if(ret <0)retur...
+ */ + +int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) +{ + unsigned *dr; + int rc; + + dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); + if (!dr) + return -ENOMEM; + + rc = gpio_request(gpio, label); + if (rc) { ...
- ret = gpio_request_one(pdata->dvs_gpio, - dcdc->dvs_gpio_state ? GPIOF_INIT_HIGH : 0, - "DCDC DVS"); + ret = devm_gpio_request_one(&pdev->dev, pdata->dvs_gpio, + dcdc->dvs_gpio_state ? GPIOF_INIT_HIGH : 0, ...