我要和一个司机约会。有以下几种说法:
/* Get the interrupt GPIO pin number */
gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN);
我读过关于的文章,但我仍然不知道到底返回了什么?
我知道gpiod_direction_output返回一个struct gpio_desc。但是devm_gpiod_get_optional的情况似乎并非如此,因为我尝试过在每个示例中打印gpiod->label,并且得到了dereferencing pointer to incom
我想知道“gpio索引”的含义是什么。
这就是我在of_gpio.h中看到的
/**
* of_get_named_gpio() - Get a GPIO number to use with GPIO API
* @np: device node to get GPIO from
* @propname: Name of property containing gpio specifier(s)
* @index: index of the GPIO
*
* Returns GPIO number to use with Linux generic GPIO API, o