From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Kent Gibson <warthog618@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [libgpiod][PATCH 1/3] tests: remove gpiod_test_chip_num()
Date: Thu, 29 Apr 2021 11:47:32 +0200 [thread overview]
Message-ID: <20210429094734.9585-2-brgl@bgdev.pl> (raw)
In-Reply-To: <20210429094734.9585-1-brgl@bgdev.pl>
This function is no longer used, remove it.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
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
next prev parent reply other threads:[~2021-04-29 9:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 9:47 [libgpiod][PATCH 0/3] tests: add support for the gpio-sim kernel module Bartosz Golaszewski
2021-04-29 9:47 ` Bartosz Golaszewski [this message]
2021-04-29 9:47 ` [libgpiod][PATCH 2/3] libgpiosim: new library for controlling the gpio-sim module Bartosz Golaszewski
2021-04-29 11:23 ` Andy Shevchenko
2021-04-29 13:07 ` Bartosz Golaszewski
2021-04-29 17:00 ` Andy Shevchenko
2021-04-29 17:03 ` Andy Shevchenko
2021-04-29 17:04 ` Andy Shevchenko
2021-04-30 9:29 ` Bartosz Golaszewski
2021-04-30 11:41 ` Andy Shevchenko
2021-04-30 12:31 ` Bartosz Golaszewski
2021-04-29 9:47 ` [libgpiod][PATCH 3/3] tests: port C tests to libgpiosim Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210429094734.9585-2-brgl@bgdev.pl \
--to=brgl@bgdev.pl \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=warthog618@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.