1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) Martin Blumenstingl <martin.blumenstingl@googlemail.com>
3  */
4 
5 #include <linux/mmc/sdio_func.h>
6 #include <linux/mmc/sdio_ids.h>
7 #include <linux/module.h>
8 #include "main.h"
9 #include "rtw8723d.h"
10 #include "sdio.h"
11 
12 static const struct sdio_device_id rtw_8723ds_id_table[] =  {
13 	{
14 		SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK,
15 			    SDIO_DEVICE_ID_REALTEK_RTW8723DS_1ANT),
16 		.driver_data = (kernel_ulong_t)&rtw8723d_hw_spec,
17 	},
18 	{
19 		SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK,
20 			    SDIO_DEVICE_ID_REALTEK_RTW8723DS_2ANT),
21 		.driver_data = (kernel_ulong_t)&rtw8723d_hw_spec,
22 	},
23 	{}
24 };
25 MODULE_DEVICE_TABLE(sdio, rtw_8723ds_id_table);
26 
27 static struct sdio_driver rtw_8723ds_driver = {
28 	.name = "rtw_8723ds",
29 	.probe = rtw_sdio_probe,
30 	.remove = rtw_sdio_remove,
31 	.id_table = rtw_8723ds_id_table,
32 	.drv = {
33 		.pm = &rtw_sdio_pm_ops,
34 		.shutdown = rtw_sdio_shutdown,
35 	}
36 };
37 module_sdio_driver(rtw_8723ds_driver);
38 
39 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>");
40 MODULE_DESCRIPTION("Realtek 802.11n wireless 8723ds driver");
41 MODULE_LICENSE("Dual BSD/GPL");
42