[PATCH libgpiod 3/7] core: change the behavior of gpiod_api_version()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




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

[Index of Archives] [Linux SPI] [Linux Kernel] [Linux ARM (vger)] [Linux ARM MSM] [Linux Omap] [Linux Arm] [Linux Tegra] [Fedora ARM] [Linux for Samsung SOC] [eCos] [Linux Fastboot] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [Linux MIPS] [Yosemite Campsites]

(追記) (追記ここまで)
Powered by Linux

AltStyle によって変換されたページ (->オリジナル) /