Skip to content

Commit

Permalink
platform/x86: pcengines-apuv2: fix simswap GPIO assignment
Browse files Browse the repository at this point in the history
The mapping entry has to hold the GPIO line index instead of
controller's register number.

Fixes: 5037d4d ("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>
  • Loading branch information
Enrico Weigelt, metux IT consult authored and Andy Shevchenko committed Dec 20, 2019
1 parent e8796c6 commit d4ac8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/pcengines-apuv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
};
Expand Down

0 comments on commit d4ac8f8

Please sign in to comment.