mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
f86fc57f8a
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
36 lines
903 B
C
36 lines
903 B
C
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
|
|
/* Copyright(c) 2018-2019 Realtek Corporation
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/pci.h>
|
|
#include "pci.h"
|
|
#include "rtw8822c.h"
|
|
|
|
static const struct pci_device_id rtw_8822ce_id_table[] = {
|
|
{
|
|
PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC822),
|
|
.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
|
|
},
|
|
{
|
|
PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC82F),
|
|
.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
|
|
},
|
|
{}
|
|
};
|
|
MODULE_DEVICE_TABLE(pci, rtw_8822ce_id_table);
|
|
|
|
static struct pci_driver rtw_8822ce_driver = {
|
|
.name = "rtw_8822ce",
|
|
.id_table = rtw_8822ce_id_table,
|
|
.probe = rtw_pci_probe,
|
|
.remove = rtw_pci_remove,
|
|
.driver.pm = &rtw_pm_ops,
|
|
.shutdown = rtw_pci_shutdown,
|
|
};
|
|
module_pci_driver(rtw_8822ce_driver);
|
|
|
|
MODULE_AUTHOR("Realtek Corporation");
|
|
MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822ce driver");
|
|
MODULE_LICENSE("Dual BSD/GPL");
|