The patch is a backport of the already upstreamed work to allow using libgpiod with its newer v2 API. Signed-off-by: Michael Heimpold <mhei@heimpold.de>