wifi: rtw88: Fix Sparse warning for rtw8822c_hw_spec
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 24 May 2022 15:36:19 +0000 (10:36 -0500)
committerKalle Valo <kvalo@kernel.org>
Mon, 30 May 2022 11:06:27 +0000 (14:06 +0300)
commitf86fc57f8ae33435f07c6dbfc308b9ab24e48ea1
tree74b2978807ff47cd06a142842c907f9d14c08052
parentf429298d68fba1d67dbe7016a37417a155be0a52
wifi: rtw88: Fix Sparse warning for rtw8822c_hw_spec

Sparse reports the following:

  CHECK   drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c:5313:22: warning: symbol 'rtw8822c_hw_spec' was not declared. Should it be static?

The warning arises because the external declaration for rtw8822c_hw_spec
occurs in rtw8822ce.h, which is not included in rtw8822c.h. That line is
moved, and the now empty file rtw8822ce.h is deleted.

Symbol 'rtw8822c_hw_spec' can be made constant.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220524153621.19027-3-Larry.Finger@lwfinger.net
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.h
drivers/net/wireless/realtek/rtw88/rtw8822ce.c
drivers/net/wireless/realtek/rtw88/rtw8822ce.h [deleted file]