aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-05-27 11:33:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-05-27 11:33:24 -0400
commitd619796495d24d4e4c3e6b9bf2b5842db18b1c01 (patch)
tree8ca2f025a5fe42e265da0946c4b03639e9ca96da /src/linux
parent341fc64a670e96f5be5e63abe41cc51cb90ed898 (diff)
downloadkutter-d619796495d24d4e4c3e6b9bf2b5842db18b1c01.tar.gz
kutter-d619796495d24d4e4c3e6b9bf2b5842db18b1c01.tar.xz
kutter-d619796495d24d4e4c3e6b9bf2b5842db18b1c01.zip
Revert "linux: Raise an error if configuring a pullup when that is not supported"
This reverts commit 70ea0806d96df5a8ea83793da46f2676d9695e69. The above commit breaks software spi on linux hosts. Revert that commit until an improved error check can be implemented. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/gpio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/linux/gpio.c b/src/linux/gpio.c
index 15ed3bae..ccc66a7f 100644
--- a/src/linux/gpio.c
+++ b/src/linux/gpio.c
@@ -153,9 +153,6 @@ gpio_in_reset(struct gpio_in g, int8_t pull_up)
} else if (pull_up < 0) {
req.flags |= GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_DOWN;
}
-#else
- if (pull_up)
- shutdown("Linux gpio interface does not support pullup/pulldown");
#endif
req.lineoffsets[0] = g.line->offset;
strncpy(req.consumer_label, GPIO_CONSUMER, sizeof(req.consumer_label) - 1);