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@xxxxxxxxxx> --- lib/line-request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.31.1.272.g89b43f80a514