[libgpiod][PATCH 1/3] tests: remove gpiod_test_chip_num()

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

 



This function is no longer used, remove it.

Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
---
 tests/gpiod-test.c | 12 ------------
 tests/gpiod-test.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c
index 2681278..ca5cdb3 100644
--- a/tests/gpiod-test.c
+++ b/tests/gpiod-test.c
@@ -149,18 +149,6 @@ const gchar *gpiod_test_chip_name(guint idx)
 	return name;
 }
 
-gint gpiod_test_chip_num(unsigned int idx)
-{
-	gint num;
-
-	num = gpio_mockup_chip_num(globals.mockup, idx);
-	if (num < 0)
-		g_error("unable to retrieve the chip number: %s",
-			g_strerror(errno));
-
-	return num;
-}
-
 gint gpiod_test_chip_get_value(guint chip_index, guint line_offset)
 {
 	gint ret;
diff --git a/tests/gpiod-test.h b/tests/gpiod-test.h
index a093f83..61735d9 100644
--- a/tests/gpiod-test.h
+++ b/tests/gpiod-test.h
@@ -80,7 +80,6 @@ enum {
 /* Wrappers around libgpiomockup helpers. */
 const gchar *gpiod_test_chip_path(guint idx);
 const gchar *gpiod_test_chip_name(guint idx);
-gint gpiod_test_chip_num(guint idx);
 gint gpiod_test_chip_get_value(guint chip_index, guint line_offset);
 void gpiod_test_chip_set_pull(guint chip_index, guint line_offset, gint pull);
 
-- 
2.30.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