aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2024-10-22 18:25:11 +0000
committerColin Percival <cperciva@FreeBSD.org>2024-11-03 16:15:30 +0000
commitaeba4bd10f08559c599b08e4c2e9ef899e758740 (patch)
treec029f0fb45e386e75382e45d4604656adb87cc8c /sys
parent193a9943ba0905cae2c828131b27ad36541ca061 (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/gpio/acpi_gpiobus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/gpio/acpi_gpiobus.c b/sys/dev/gpio/acpi_gpiobus.c
index 3b6fc6dde674..9828170daeca 100644
--- a/sys/dev/gpio/acpi_gpiobus.c
+++ b/sys/dev/gpio/acpi_gpiobus.c
@@ -52,8 +52,6 @@ acpi_gpiobus_convflags(ACPI_RESOURCE_GPIO *gpio_res)
uint32_t flags = 0;
/* Figure out pin flags */
-#ifdef NOT_YET
- /* These are currently unused. */
if (gpio_res->ConnectionType == ACPI_RESOURCE_GPIO_TYPE_INT) {
switch (gpio_res->Polarity) {
case ACPI_ACTIVE_HIGH:
@@ -69,10 +67,12 @@ acpi_gpiobus_convflags(ACPI_RESOURCE_GPIO *gpio_res)
break;
}
+#ifdef NOT_YET
+ /* This is not currently implemented. */
if (gpio_res->Shareable == ACPI_SHARED)
flags |= GPIO_INTR_SHAREABLE;
- }
#endif
+ }
switch (gpio_res->IoRestriction) {
case ACPI_IO_RESTRICT_INPUT:
flags |= GPIO_PIN_INPUT;