diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2019-12-12 14:23:48 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-12-20 20:01:59 +0300 |
commit | d4ac8f83dafec205c5db9b86b21587fba43bc017 (patch) | |
tree | 88789794b2f212e85c1502e9c4c14fad432253c9 /drivers/platform/x86/pcengines-apuv2.c | |
parent | e8796c6c69d129420ee94a1906b18d86b84644d4 (diff) | |
download | linux-d4ac8f83dafec205c5db9b86b21587fba43bc017.tar.xz |
platform/x86: pcengines-apuv2: fix simswap GPIO assignment
The mapping entry has to hold the GPIO line index instead of
controller's register number.
Fixes: 5037d4ddda31 ("platform/x86: pcengines-apuv2: wire up simswitch gpio as led")
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/pcengines-apuv2.c')
-rw-r--r-- | drivers/platform/x86/pcengines-apuv2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index 48b112b4f0b0..c32daf087640 100644 --- a/drivers/platform/x86/pcengines-apuv2.c +++ b/drivers/platform/x86/pcengines-apuv2.c @@ -95,7 +95,7 @@ static struct gpiod_lookup_table gpios_led_table = { NULL, 1, GPIO_ACTIVE_LOW), GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED3, NULL, 2, GPIO_ACTIVE_LOW), - GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_REG_SIMSWAP, + GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_SIMSWAP, NULL, 3, GPIO_ACTIVE_LOW), } }; |