Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Klipper3d/klipper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Callahan <Arksine@users.noreply.github.com>2022-11-08 17:56:52 +0300
committerGitHub <noreply@github.com>2022-11-08 17:56:52 +0300
commit5b1a667659d3fd468adeef864d21b7c4c7fcb650 (patch)
tree2ae6a8607da2d9dbfa5a6de6b5c2ec753e0847bb
parent6485ff800b56dbb4578afde88e7d22f6b0a25dc8 (diff)
linux: use correct gpio bias flags (#5878)
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r--src/linux/gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linux/gpio.c b/src/linux/gpio.c
index ccc66a7fd..19a3fac18 100644
--- a/src/linux/gpio.c
+++ b/src/linux/gpio.c
@@ -147,11 +147,11 @@ gpio_in_reset(struct gpio_in g, int8_t pull_up)
memset(&req, 0, sizeof(req));
req.lines = 1;
req.flags = GPIOHANDLE_REQUEST_INPUT;
-#if defined(GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP)
+#if defined(GPIOHANDLE_REQUEST_BIAS_PULL_UP)
if (pull_up > 0) {
- req.flags |= GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP;
+ req.flags |= GPIOHANDLE_REQUEST_BIAS_PULL_UP;
} else if (pull_up < 0) {
- req.flags |= GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_DOWN;
+ req.flags |= GPIOHANDLE_REQUEST_BIAS_PULL_DOWN;
}
#endif
req.lineoffsets[0] = g.line->offset;