leds: simatic-ipc-leds-gpio: fix incorrect LED to GPIO mapping
authorHenning Schild <henning.schild@siemens.com>
Mon, 24 Oct 2022 09:20:27 +0000 (11:20 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 24 Oct 2022 09:32:10 +0000 (11:32 +0200)
commitee24395f91b9cddccae5f6c11c37ee4ed78ff354
tree2955b2e9d293a215f26b8d07aa9f34d894d72f5a
parent0b6e6e149c136677f1cc859d4185b5a2db50ffbf
leds: simatic-ipc-leds-gpio: fix incorrect LED to GPIO mapping

For apollolake the mapping between LEDs and GPIO pins was off because of
a refactoring when we introduced a new device model.
In addition to the reordering the indices in the lookup table need to be
updated as well.

Fixes: a97126265dfe ("leds: simatic-ipc-leds-gpio: add new model 227G")
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Link: https://lore.kernel.org/r/20221024092027.4529-1-henning.schild@siemens.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/leds/simple/simatic-ipc-leds-gpio.c