mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 17:11:03 +00:00
staging: rtl8188eu: Use proper enum in rtl8188eu_config_rf_reg
Clang warns when an enumerated type is implicitly converted to another. drivers/staging/rtl8188eu/hal/rf_cfg.c:180:25: warning: implicit conversion from enumeration type 'enum rf90_radio_path' to different enumeration type 'enum rf_radio_path' [-Wenum-conversion] rtl_rfreg_delay(adapt, RF90_PATH_A, addr | maskforphyset, ~~~~~~~~~~~~~~~ ^~~~~~~~~~~ 1 warning generated. Avoid this by using the equivalent value from the expected type, rf_radio_path: RF90_PATH_A = RF_PATH_A = 0 Link: https://github.com/ClangBuiltLinux/linux/issues/164 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6505090a34
commit
71c2914448
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static void rtl8188e_config_rf_reg(struct adapter *adapt,
|
||||||
u32 content = 0x1000; /*RF Content: radio_a_txt*/
|
u32 content = 0x1000; /*RF Content: radio_a_txt*/
|
||||||
u32 maskforphyset = content & 0xE000;
|
u32 maskforphyset = content & 0xE000;
|
||||||
|
|
||||||
rtl_rfreg_delay(adapt, RF90_PATH_A, addr | maskforphyset,
|
rtl_rfreg_delay(adapt, RF_PATH_A, addr | maskforphyset,
|
||||||
RFREG_OFFSET_MASK,
|
RFREG_OFFSET_MASK,
|
||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue