OSDN Git Service

staging: r8188eu: make power sequences static
authorMartin Kaiser <martin@kaiser.cx>
Mon, 27 Jun 2022 08:53:54 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 11:51:08 +0000 (13:51 +0200)
commitdf8d0a55047b57074ac69db795a9775b3abe364e
treec79855738ef737a0401c2a327d476c65697fd09e
parent1b0a54b3e83f67cade6e510f43804ac7ab4c0bb9
staging: r8188eu: make power sequences static

Simplify the handling of "power sequences". At the moment, this is rather
complicated:
The hal layer calls HalPwrSeqCmdParsing. This function takes a pointer to
a power sequence. The sequences themselves are defined as global variables
in a separate file. There's an alias for each sequence, the callers of
HalPwrSeqCmdParsing use these aliases instead of the sequences themselves.

There's no point in passing the sequences around. We can move the
sequences into the same file as the HalPwrSeqCmdParsing function where
they are used. Callers of HalPwrSeqCmdParsing can refer to a sequence by
using a numeric define rather than a pointer to the sequence.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220627085354.28849-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/Makefile
drivers/staging/r8188eu/hal/Hal8188EPwrSeq.c [deleted file]
drivers/staging/r8188eu/hal/HalPwrSeqCmd.c
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/Hal8188EPwrSeq.h [deleted file]
drivers/staging/r8188eu/include/HalPwrSeqCmd.h
drivers/staging/r8188eu/include/rtl8188e_hal.h