Which GPIO API is preferable in programming a Linux device driver, and under what conditions: gpio_set_value()or gpiod_set_value()?
One accepts GPIO desc as an object, while the other accepts GPIO, which is processed from the device tree.
Raulp source
share