1
0
mirror of https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git synced 2026-10-24 00:48:53 +03:00

core: change the behavior of gpiod_api_version()

Make gpiod_api_version() return the human-readable form of the libgpiod
C API instead of the libgpiod package version.

Acked-by: Erik Wierich <erik@riscstar.com>
Link: https://lore.kernel.org/r/20250903-api-version-detach-v1-3-027ca5928518@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Bartosz Golaszewski
2025-09-03 15:02:01 +02:00
parent cf49a9a571
commit a62c732936

View File

@@ -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;
}