Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: rsi: Avoid defines prefixed with CONFIG

Macros prefixed with CONFIG_ are intended to be defined only by
Kconfig scripts. Here we remove the prefix from the
CONFIG_AUTO_READ_MODE define to avoid confusion when reading the code.

This causes no change to functionality.

Signed-off-by: Peter Lafreniere <peter@n8pjl.ca>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230118185353.2422-1-peter@n8pjl.ca

authored by

Peter Lafreniere and committed by
Kalle Valo
c6e3dc99 ddf9a2ea

+3 -3
+2 -2
drivers/net/wireless/rsi/rsi_91x_hal.c
··· 894 894 struct ta_metadata *metadata_p; 895 895 int status; 896 896 897 - status = bl_cmd(adapter, CONFIG_AUTO_READ_MODE, CMD_PASS, 897 + status = bl_cmd(adapter, AUTO_READ_MODE, CMD_PASS, 898 898 "AUTO_READ_CMD"); 899 899 if (status < 0) 900 900 return status; ··· 984 984 } 985 985 rsi_dbg(ERR_ZONE, "Firmware upgrade failed\n"); 986 986 987 - status = bl_cmd(adapter, CONFIG_AUTO_READ_MODE, CMD_PASS, 987 + status = bl_cmd(adapter, AUTO_READ_MODE, CMD_PASS, 988 988 "AUTO_READ_MODE"); 989 989 if (status) 990 990 goto fail;
+1 -1
drivers/net/wireless/rsi/rsi_hal.h
··· 69 69 #define EOF_REACHED 'E' 70 70 #define CHECK_CRC 'K' 71 71 #define POLLING_MODE 'P' 72 - #define CONFIG_AUTO_READ_MODE 'R' 72 + #define AUTO_READ_MODE 'R' 73 73 #define JUMP_TO_ZERO_PC 'J' 74 74 #define FW_LOADING_SUCCESSFUL 'S' 75 75 #define LOADING_INITIATED '1'