xref: /openbmc/linux/drivers/net/wireless/realtek/rtw88/rtw8723du.c (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1*87caeef0SSascha Hauer // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2*87caeef0SSascha Hauer /* Copyright(c) 2018-2019  Realtek Corporation
3*87caeef0SSascha Hauer  */
4*87caeef0SSascha Hauer 
5*87caeef0SSascha Hauer #include <linux/module.h>
6*87caeef0SSascha Hauer #include <linux/usb.h>
7*87caeef0SSascha Hauer #include "main.h"
8*87caeef0SSascha Hauer #include "rtw8723d.h"
9*87caeef0SSascha Hauer #include "usb.h"
10*87caeef0SSascha Hauer 
11*87caeef0SSascha Hauer static const struct usb_device_id rtw_8723du_id_table[] = {
12*87caeef0SSascha Hauer 	{ USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd723, 0xff, 0xff, 0xff),
13*87caeef0SSascha Hauer 	  .driver_info = (kernel_ulong_t)&(rtw8723d_hw_spec) }, /* 8723DU 1*1 */
14*87caeef0SSascha Hauer 	{ USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xd611, 0xff, 0xff, 0xff),
15*87caeef0SSascha Hauer 	  .driver_info = (kernel_ulong_t)&(rtw8723d_hw_spec) }, /* Edimax EW-7611ULB V2 */
16*87caeef0SSascha Hauer 	{ },
17*87caeef0SSascha Hauer };
18*87caeef0SSascha Hauer MODULE_DEVICE_TABLE(usb, rtw_8723du_id_table);
19*87caeef0SSascha Hauer 
rtw8723du_probe(struct usb_interface * intf,const struct usb_device_id * id)20*87caeef0SSascha Hauer static int rtw8723du_probe(struct usb_interface *intf,
21*87caeef0SSascha Hauer 			   const struct usb_device_id *id)
22*87caeef0SSascha Hauer {
23*87caeef0SSascha Hauer 	return rtw_usb_probe(intf, id);
24*87caeef0SSascha Hauer }
25*87caeef0SSascha Hauer 
26*87caeef0SSascha Hauer static struct usb_driver rtw_8723du_driver = {
27*87caeef0SSascha Hauer 	.name = "rtw_8723du",
28*87caeef0SSascha Hauer 	.id_table = rtw_8723du_id_table,
29*87caeef0SSascha Hauer 	.probe = rtw8723du_probe,
30*87caeef0SSascha Hauer 	.disconnect = rtw_usb_disconnect,
31*87caeef0SSascha Hauer };
32*87caeef0SSascha Hauer module_usb_driver(rtw_8723du_driver);
33*87caeef0SSascha Hauer 
34*87caeef0SSascha Hauer MODULE_AUTHOR("Hans Ulli Kroll <linux@ulli-kroll.de>");
35*87caeef0SSascha Hauer MODULE_DESCRIPTION("Realtek 802.11n wireless 8723du driver");
36*87caeef0SSascha Hauer MODULE_LICENSE("Dual BSD/GPL");
37