查看模块的vid
与pid
,分别是1782和4e00。
Air720U
与Air720
的驱动修改方式一致,都需要添加对应的Vendor ID
和Product ID
。增加如下代码:
// option.c
static const struct usb_device_id option_ids[] = {
{ USB_DEVICE(0x1782, 0x4e00) },
...
};
static int option_probe(struct usb_serial *serial, const struct usb_device_id *id)
{
...
if (dev_desc->idVendor == cpu_to_le16(0x1782) && dev_desc->idProduct == cpu_to_le16(0x4e00) && iface_desc->bInterfaceNumber <= 1)
{
return -ENODEV;
}
...
}
剩余部分请参考Air720的驱动修改来操作。
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!