diff mbox series

[1/2] libgpiod: Fix ioctl number for gpiod_line_request_reconfigure_lines()

Message ID ce3d189ec1f04092f7edc56c9a1f6534b60d6a14.1637917008.git.viresh.kumar@linaro.org
State New
Headers show
Series libgpiod: Minor fixups for 2.0 bindings | expand

Commit Message

Viresh Kumar Nov. 26, 2021, 9:07 a.m. UTC
The ioctl number used for gpiod_line_request_reconfigure_lines() is
incorrect written as GPIO_V2_LINE_GET_VALUES_IOCTL instead of
GPIO_V2_LINE_SET_CONFIG_IOCTL. Fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 lib/line-request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/line-request.c b/lib/line-request.c
index 8008b89c7e65..0ac4ec89408e 100644
--- a/lib/line-request.c
+++ b/lib/line-request.c
@@ -197,7 +197,7 @@  gpiod_line_request_reconfigure_lines(struct gpiod_line_request *request,
 	if (ret)
 		return ret;
 
-	ret = ioctl(request->fd, GPIO_V2_LINE_GET_VALUES_IOCTL, &cfgbuf);
+	ret = ioctl(request->fd, GPIO_V2_LINE_SET_CONFIG_IOCTL, &cfgbuf);
 	if (ret)
 		return ret;