OSDN Git Service

staging: r8188eu: read pwr seq length, remove PWR_CMD_END
authorMartin Kaiser <martin@kaiser.cx>
Mon, 4 Jul 2022 14:52:19 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:27:05 +0000 (14:27 +0200)
commit38fbc32e83d6c09fe2f89cd1007f1a710393a7be
tree2bb7613ed2a513a222f847c81295dc4661e2dda6
parent8be317cf61d8f07bde70ccda84fee5e6f502e7fa
staging: r8188eu: read pwr seq length, remove PWR_CMD_END

The definitions of the power sequences are in the same file as the function
which processes them. We can simply read the number of entries in a power
sequence. There's no need for a PWR_CMD_END command to indicate the end
of a sequence.

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