public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH libgpiod 1/2] bindings: python: properly pass event clock settings
@ 2024-07-31 10:46 Bartosz Golaszewski
  2024-07-31 10:46 ` [PATCH libgpiod 2/2] bindings: python: tests: check that event clock is property set in request Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-07-31 10:46 UTC (permalink / raw)
  To: Benjamin Cabé, Kent Gibson, Linus Walleij
  Cc: linux-gpio, Bartosz Golaszewski

From: Benjamin Cabé <kartben@gmail.com>

Python binding was ignoring event_clock line setting.

Signed-off-by: Benjamin Cabé <kartben@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 bindings/python/gpiod/ext/line-settings.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bindings/python/gpiod/ext/line-settings.c b/bindings/python/gpiod/ext/line-settings.c
index 2cacbef..650235e 100644
--- a/bindings/python/gpiod/ext/line-settings.c
+++ b/bindings/python/gpiod/ext/line-settings.c
@@ -79,6 +79,10 @@ line_settings_init(line_settings_object *self, PyObject *args, PyObject *kwargs)
 	if (ret)
 		return set_error();
 
+	ret = gpiod_line_settings_set_event_clock(self->settings, event_clock);
+	if (ret)
+		return set_error();
+
 	return 0;
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-01  8:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 10:46 [PATCH libgpiod 1/2] bindings: python: properly pass event clock settings Bartosz Golaszewski
2024-07-31 10:46 ` [PATCH libgpiod 2/2] bindings: python: tests: check that event clock is property set in request Bartosz Golaszewski
2024-08-01  0:07 ` [PATCH libgpiod 1/2] bindings: python: properly pass event clock settings Kent Gibson
2024-08-01  7:55   ` Bartosz Golaszewski
2024-08-01  8:27 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox