aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_vhci.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-10 19:52:43 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-11 03:45:34 -0400
commite1a26170692dc1e5fbe0ccd98ef86cc9fcd31a64 (patch)
treee0960ade9f09c39dc44c92604e7f758760ea1fce /drivers/bluetooth/hci_vhci.c
parent8909f6d2c450d0a878bcb1d1184ed0114c5724c9 (diff)
Bluetooth: Provide hdev parameter to hci_recv_frame() driver callback
To avoid casting skb->dev into hdev, just let the drivers provide the hdev directly when calling hci_recv_frame() function. This patch also fixes up all drivers to provide the hdev. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_vhci.c')
-rw-r--r--drivers/bluetooth/hci_vhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index c04a3e6fb37c..0fd522e85a71 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -179,10 +179,9 @@ static inline ssize_t vhci_get_user(struct vhci_data *data,
179 return -ENODEV; 179 return -ENODEV;
180 } 180 }
181 181
182 skb->dev = (void *) data->hdev;
183 bt_cb(skb)->pkt_type = pkt_type; 182 bt_cb(skb)->pkt_type = pkt_type;
184 183
185 ret = hci_recv_frame(skb); 184 ret = hci_recv_frame(data->hdev, skb);
186 break; 185 break;
187 186
188 case HCI_VENDOR_PKT: 187 case HCI_VENDOR_PKT: