platform/x86: pcengines-apuv2: fix simswap GPIO assignment
authorEnrico Weigelt, metux IT consult <info@metux.net>
Thu, 12 Dec 2019 11:23:48 +0000 (12:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:21:42 +0000 (12:21 +0100)
commit542dc09cc5ce146d2b1636e3c9e9a012555a6c49
tree98100f1ef844dffb6a2af8831c46a87f5ed8a7e9
parent47b957faa931a34186714a84b9206476b1a53ebf
platform/x86: pcengines-apuv2: fix simswap GPIO assignment

[ Upstream commit d4ac8f83dafec205c5db9b86b21587fba43bc017 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/pcengines-apuv2.c