staging: r8188eu: fix status updates in SwLedOff
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Oct 2022 15:11:08 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:41:41 +0000 (17:41 +0200)
commitef032c4fa43655715a39378d23cf3cc943cfdafa
treeec7bace07637155fd33968defee43f7b45443b85
parente5931b7ba5a9ccfea6e36f9f07eac89091782e9b
staging: r8188eu: fix status updates in SwLedOff

Update bLedOn only if we could update the REG_LEDCFG2 register.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221015151115.232095-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c