mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
Bluetooth: btusb: Record matched usb_device_id into btusb_data
Add @match_id to btusb_data to record the matched usb_device_id which will be used later. Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
d0b15d8126
commit
ff50db7a52
@@ -1014,6 +1014,7 @@ struct btusb_data {
|
||||
bool usb_alt6_packet_flow;
|
||||
int isoc_altsetting;
|
||||
int suspend_count;
|
||||
const struct usb_device_id *match_id;
|
||||
|
||||
int (*recv_event)(struct hci_dev *hdev, struct sk_buff *skb);
|
||||
int (*recv_acl)(struct hci_dev *hdev, struct sk_buff *skb);
|
||||
@@ -4112,6 +4113,7 @@ static int btusb_probe(struct usb_interface *intf,
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
|
||||
data->match_id = id;
|
||||
err = usb_find_common_endpoints(intf->cur_altsetting, &data->bulk_rx_ep,
|
||||
&data->bulk_tx_ep, &data->intr_ep, NULL);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user