]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: r8188eu: handle rtw_write8 errors in SwLedOn
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Oct 2022 15:11:07 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:41:41 +0000 (17:41 +0200)
commite5931b7ba5a9ccfea6e36f9f07eac89091782e9b
tree2f9e91abd8d6831ddbee1e8241412f2cde242b8e
parent12c6223fc1804fd9295dc50d358294539b4a4184
staging: r8188eu: handle rtw_write8 errors in SwLedOn

Check the status returned by rtw_write8. 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-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c