From 2f38f92ae27b1427508cf014815ad33029fa6af3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benjamin=20Cab=C3=A9?= Date: Wed, 31 Jul 2024 12:46:57 +0200 Subject: [PATCH] bindings: python: properly pass event clock settings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Python binding was ignoring event_clock line setting. Signed-off-by: Benjamin Cabé Reviewed-by: Kent Gibson Link: https://lore.kernel.org/r/20240731104658.93117-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski --- 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.30.2