aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/dtl1_cs.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-02-09 15:58:32 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 10:01:37 -0500
commit155961e8001719af6d87cbcc961111e8ce477843 (patch)
tree5b2485b5a7b2074f9e01111cf8539a34f34ce2d5 /drivers/bluetooth/dtl1_cs.c
parentaa2b86d761a95068354511de755695ef6b53afc7 (diff)
Bluetooth: Remove hci_dev->driver_data
The linux device model provides dev_set/get_drvdata so we can use this to save private driver data. This also removes several unnecessary casts. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/dtl1_cs.c')
-rw-r--r--drivers/bluetooth/dtl1_cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c
index 295cf1b4a052..049c0594a76b 100644
--- a/drivers/bluetooth/dtl1_cs.c
+++ b/drivers/bluetooth/dtl1_cs.c
@@ -364,7 +364,7 @@ static int dtl1_hci_open(struct hci_dev *hdev)
364 364
365static int dtl1_hci_flush(struct hci_dev *hdev) 365static int dtl1_hci_flush(struct hci_dev *hdev)
366{ 366{
367 dtl1_info_t *info = (dtl1_info_t *)(hdev->driver_data); 367 dtl1_info_t *info = hci_get_drvdata(hdev);
368 368
369 /* Drop TX queue */ 369 /* Drop TX queue */
370 skb_queue_purge(&(info->txq)); 370 skb_queue_purge(&(info->txq));
@@ -396,7 +396,7 @@ static int dtl1_hci_send_frame(struct sk_buff *skb)
396 return -ENODEV; 396 return -ENODEV;
397 } 397 }
398 398
399 info = (dtl1_info_t *)(hdev->driver_data); 399 info = hci_get_drvdata(hdev);
400 400
401 switch (bt_cb(skb)->pkt_type) { 401 switch (bt_cb(skb)->pkt_type) {
402 case HCI_COMMAND_PKT: 402 case HCI_COMMAND_PKT:
@@ -475,7 +475,7 @@ static int dtl1_open(dtl1_info_t *info)
475 info->hdev = hdev; 475 info->hdev = hdev;
476 476
477 hdev->bus = HCI_PCCARD; 477 hdev->bus = HCI_PCCARD;
478 hdev->driver_data = info; 478 hci_set_drvdata(hdev, info);
479 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); 479 SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
480 480
481 hdev->open = dtl1_hci_open; 481 hdev->open = dtl1_hci_open;