forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/staging/rtl8188eu/hal/pwrseqcmd.c
....@@ -26,25 +26,26 @@
2626 pwrcfgcmd = pwrseqcmd[aryidx];
2727
2828 RT_TRACE(_module_hal_init_c_, _drv_info_,
29
- ("rtl88eu_pwrseqcmdparsing: offset(%#x) cut_msk(%#x)"
29
+ ("%s: offset(%#x) cut_msk(%#x)"
3030 " cmd(%#x)"
3131 "msk(%#x) value(%#x)\n",
32
- GET_PWR_CFG_OFFSET(pwrcfgcmd),
33
- GET_PWR_CFG_CUT_MASK(pwrcfgcmd),
34
- GET_PWR_CFG_CMD(pwrcfgcmd),
35
- GET_PWR_CFG_MASK(pwrcfgcmd),
36
- GET_PWR_CFG_VALUE(pwrcfgcmd)));
32
+ __func__,
33
+ GET_PWR_CFG_OFFSET(pwrcfgcmd),
34
+ GET_PWR_CFG_CUT_MASK(pwrcfgcmd),
35
+ GET_PWR_CFG_CMD(pwrcfgcmd),
36
+ GET_PWR_CFG_MASK(pwrcfgcmd),
37
+ GET_PWR_CFG_VALUE(pwrcfgcmd)));
3738
3839 /* Only Handle the command whose CUT is matched */
3940 if (GET_PWR_CFG_CUT_MASK(pwrcfgcmd) & cut_vers) {
4041 switch (GET_PWR_CFG_CMD(pwrcfgcmd)) {
4142 case PWR_CMD_READ:
4243 RT_TRACE(_module_hal_init_c_, _drv_info_,
43
- ("rtl88eu_pwrseqcmdparsing: PWR_CMD_READ\n"));
44
+ ("%s: PWR_CMD_READ\n", __func__));
4445 break;
4546 case PWR_CMD_WRITE:
4647 RT_TRACE(_module_hal_init_c_, _drv_info_,
47
- ("rtl88eu_pwrseqcmdparsing: PWR_CMD_WRITE\n"));
48
+ ("%s: PWR_CMD_WRITE\n", __func__));
4849 offset = GET_PWR_CFG_OFFSET(pwrcfgcmd);
4950
5051 /* Read the value from system register */
....@@ -59,7 +60,7 @@
5960 break;
6061 case PWR_CMD_POLLING:
6162 RT_TRACE(_module_hal_init_c_, _drv_info_,
62
- ("rtl88eu_pwrseqcmdparsing: PWR_CMD_POLLING\n"));
63
+ ("%s: PWR_CMD_POLLING\n", __func__));
6364
6465 poll_bit = false;
6566 offset = GET_PWR_CFG_OFFSET(pwrcfgcmd);
....@@ -81,20 +82,20 @@
8182 break;
8283 case PWR_CMD_DELAY:
8384 RT_TRACE(_module_hal_init_c_, _drv_info_,
84
- ("rtl88eu_pwrseqcmdparsing: PWR_CMD_DELAY\n"));
85
+ ("%s: PWR_CMD_DELAY\n", __func__));
8586 if (GET_PWR_CFG_VALUE(pwrcfgcmd) == PWRSEQ_DELAY_US)
8687 udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd));
8788 else
88
- udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd)*1000);
89
+ udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd) * 1000);
8990 break;
9091 case PWR_CMD_END:
9192 /* When this command is parsed, end the process */
9293 RT_TRACE(_module_hal_init_c_, _drv_info_,
93
- ("rtl88eu_pwrseqcmdparsing: PWR_CMD_END\n"));
94
+ ("%s: PWR_CMD_END\n", __func__));
9495 return true;
9596 default:
9697 RT_TRACE(_module_hal_init_c_, _drv_err_,
97
- ("rtl88eu_pwrseqcmdparsing: Unknown CMD!!\n"));
98
+ ("%s: Unknown CMD!!\n", __func__));
9899 break;
99100 }
100101 }