staging: rtl8188eu: remove PWR_CMD_READ
authorMartin Kaiser <martin@kaiser.cx>
Sun, 18 Jul 2021 17:36:09 +0000 (19:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 08:31:22 +0000 (10:31 +0200)
None of the power flows and transitions includes a read command.
PWR_CMD_READ can be removed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210718173610.894-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/pwrseqcmd.c
drivers/staging/rtl8188eu/include/pwrseqcmd.h

index f2b973b377ddd3a1e73bd9eec7b999971bba662f..cab774e31c6019f7c5aeb3f0626940ee13a66825 100644 (file)
@@ -25,8 +25,6 @@ u8 rtl88eu_pwrseqcmdparsing(struct adapter *padapter, struct wl_pwr_cfg pwrseqcm
                pwrcfgcmd = pwrseqcmd[aryidx];
 
                switch (GET_PWR_CFG_CMD(pwrcfgcmd)) {
-               case PWR_CMD_READ:
-                       break;
                case PWR_CMD_WRITE:
                        offset = GET_PWR_CFG_OFFSET(pwrcfgcmd);
 
index e364ee450beb623f046e2cdfea86260cc15f8c61..a5eb95fc58b9286552376a45e5036b58de2dd0c5 100644 (file)
@@ -10,7 +10,6 @@
 #include <drv_types.h>
 
 /* The value of cmd: 4 bits */
-#define PWR_CMD_READ           0x00
 #define PWR_CMD_WRITE          0x01
 #define PWR_CMD_POLLING                0x02
 #define PWR_CMD_DELAY          0x03