From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
Make gpiod_api_version() return the human-readable form of the libgpiod
C API instead of the libgpiod package version.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
---
lib/misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/misc.c b/lib/misc.c
index e109f8086b4c22edccfb5e88b89e4bf2fac4feee..33d68379032f6dfdc17d40c13ac08a5d911dc93f 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -12,5 +12,5 @@ GPIOD_API bool gpiod_is_gpiochip_device(const char *path)
GPIOD_API const char *gpiod_api_version(void)
{
- return GPIOD_VERSION_STR;
+ return GPIOD_API_VERSION_STR;
}
--
2.48.1