New API changes to libgpiod are breaking calls to gpiod_chip_close gpiod_chip_open_by_number. Assigning to Antonio as it looks like they've done the most work on the linuxgpiod driver.
upstream commits:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=eb690e46efd09cd9a758ed1b19f99601f7b5de8a
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=56cf1ad3ec0797be63e3c1fdc2933a237ba138c1
Michael, thanks for pointing it.
It is part of the API change for future libgpiod v2 but, after check the email exchange at the link below, I'm not going to spend time on it right now
https://lore.kernel.org/linux-gpio/CAMRc=McOuJkAFg02+HWDtTxOYm+5io994G8AafnxY32eJJi4+g@mail.gmail.com/
The new API is not fixed yet and "It's not yet stable and is about to change again soon."
"libgpiod v2 is under development and will probably still be so for a while" !
Let's wait at least for a release candidate.
So libgpiod 2.0 is due soon and is currently at 2.0 rc3.
It seems libgpiod v2 has been released early march, and is now at version v2.0.2. Do you think someone will be able to look into this issue now their API is stable ?
libgpiod v2.1 is also out.
Strange that Arch Linux still have not updated, sticking to v1.6.4
Anyway, big change in the API, I will try to have a look.
If someone else wants to provide a patch, welcome. Just please keep backward compatibility to old libgpiod
Arch Linux now has libgpiod 2.0 in the repos.
Last edit: Arti Zirk 2024-01-08
Thanks to Michael Heimpold, a first patch series for libgpiod 2.0 is under review in
https://review.openocd.org/c/openocd/+/8184
You are invited to test and review it too