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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user