summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-10 15:13:25 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-10 15:13:25 +0200
commit0d3bfc4370e25480254ab9831aef0d2b858cb0e1 (patch)
treef353135b8b11ba08f2bb6fbefbd717ccc51f834e
parent4ea08ca7f45e0edb4c1d1fe96a26a283b9074d06 (diff)
downloadexynos-gpio-tool-0d3bfc4370e25480254ab9831aef0d2b858cb0e1.tar.gz
exynos-gpio-tool-0d3bfc4370e25480254ab9831aef0d2b858cb0e1.tar.bz2
exynos-gpio-tool-0d3bfc4370e25480254ab9831aef0d2b858cb0e1.zip
Fix typo with pulldown disable
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--exynos4412_gpios_data.c4
-rw-r--r--exynos4412_gpios_data.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/exynos4412_gpios_data.c b/exynos4412_gpios_data.c
index 9b82cff..5a113cf 100644
--- a/exynos4412_gpios_data.c
+++ b/exynos4412_gpios_data.c
@@ -118,8 +118,8 @@ static char *gpio_resistor_str(int value)
{
/* The GP<x>PUD field size is 2 bit. */
switch (value) {
- case GPIO_RESISTORS_PULLDOWN_DISABLE:
- return "GPIO_RESISTORS_PULLDOWN_DISABLE";
+ case GPIO_RESISTORS_PULLUP_PULLDOWN_DISABLE:
+ return "GPIO_RESISTORS_PULLUP_PULLDOWN_DISABLE";
case GPIO_RESISTORS_ENABLE_PULL_DOWN:
return "GPIO_RESISTORS_ENABLE_PULL_DOWN";
case GPIO_RESISTORS_RESERVED:
diff --git a/exynos4412_gpios_data.h b/exynos4412_gpios_data.h
index 267b045..360b0cf 100644
--- a/exynos4412_gpios_data.h
+++ b/exynos4412_gpios_data.h
@@ -70,7 +70,7 @@ enum gpio_drive_strength {
*/
enum gpio_pullup_pulldown {
- GPIO_RESISTORS_PULLDOWN_DISABLE = 0,
+ GPIO_RESISTORS_PULLUP_PULLDOWN_DISABLE = 0,
GPIO_RESISTORS_ENABLE_PULL_DOWN = 1,
GPIO_RESISTORS_RESERVED = 2,
GPIO_RESISTORS_ENABLE_PULL_UP = 3,