Skip to content

Commit 61ca40c

Browse files
nunojsafourmone
authored andcommitted
gpiolib: acpi: support bias pull disable
On top of looking at PULL_UP and PULL_DOWN flags, also look at PULL_DISABLE and set the appropriate GPIO flag. The GPIO core will then pass down this to controllers that support it. Change-Id: I78df1dc294ae916c1f52888e1c0b9e897042a4ed Signed-off-by: Nuno Sá <nuno.sa@analog.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/312115 Tested-by: Eric FOURMONT <eric.fourmont-ext@st.com> Reviewed-by: Eric FOURMONT <eric.fourmont-ext@st.com> Domain-Review: Eric FOURMONT <eric.fourmont-ext@st.com>
1 parent 1a3de8e commit 61ca40c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpio/gpiolib-acpi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ int acpi_gpio_update_gpiod_lookup_flags(unsigned long *lookupflags,
702702
case ACPI_PIN_CONFIG_PULLDOWN:
703703
*lookupflags |= GPIO_PULL_DOWN;
704704
break;
705+
case ACPI_PIN_CONFIG_NOPULL:
706+
*lookupflags |= GPIO_PULL_DISABLE;
707+
break;
705708
default:
706709
break;
707710
}

0 commit comments

Comments
 (0)