diff options
-rw-r--r-- | drivers/bluetooth/bfusb.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btmrvl_main.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btsdio.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btusb.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 2 | ||||
-rw-r--r-- | include/net/bluetooth/hci.h | 2 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_core.c | 8 | ||||
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 16 |
15 files changed, 25 insertions, 25 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index 2a00707aba3b..005919ab043c 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c | |||
@@ -703,7 +703,7 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
703 | 703 | ||
704 | data->hdev = hdev; | 704 | data->hdev = hdev; |
705 | 705 | ||
706 | hdev->type = HCI_USB; | 706 | hdev->bus = HCI_USB; |
707 | hdev->driver_data = data; | 707 | hdev->driver_data = data; |
708 | SET_HCIDEV_DEV(hdev, &intf->dev); | 708 | SET_HCIDEV_DEV(hdev, &intf->dev); |
709 | 709 | ||
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index c2cf81144715..d9bf87ca9e83 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -736,7 +736,7 @@ static int bluecard_open(bluecard_info_t *info) | |||
736 | 736 | ||
737 | info->hdev = hdev; | 737 | info->hdev = hdev; |
738 | 738 | ||
739 | hdev->type = HCI_PCCARD; | 739 | hdev->bus = HCI_PCCARD; |
740 | hdev->driver_data = info; | 740 | hdev->driver_data = info; |
741 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); | 741 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); |
742 | 742 | ||
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index c115285867c3..d945cd12433a 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -469,7 +469,7 @@ static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id * | |||
469 | return -ENOMEM; | 469 | return -ENOMEM; |
470 | } | 470 | } |
471 | 471 | ||
472 | hdev->type = HCI_USB; | 472 | hdev->bus = HCI_USB; |
473 | hdev->driver_data = data; | 473 | hdev->driver_data = data; |
474 | 474 | ||
475 | data->hdev = hdev; | 475 | data->hdev = hdev; |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 9f5926aaf57f..027cb8bf650f 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -582,7 +582,7 @@ static int bt3c_open(bt3c_info_t *info) | |||
582 | 582 | ||
583 | info->hdev = hdev; | 583 | info->hdev = hdev; |
584 | 584 | ||
585 | hdev->type = HCI_PCCARD; | 585 | hdev->bus = HCI_PCCARD; |
586 | hdev->driver_data = info; | 586 | hdev->driver_data = info; |
587 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); | 587 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); |
588 | 588 | ||
diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c index f97771ce432c..53a43adf2e21 100644 --- a/drivers/bluetooth/btmrvl_main.c +++ b/drivers/bluetooth/btmrvl_main.c | |||
@@ -563,7 +563,7 @@ struct btmrvl_private *btmrvl_add_card(void *card) | |||
563 | 563 | ||
564 | priv->btmrvl_dev.tx_dnld_rdy = true; | 564 | priv->btmrvl_dev.tx_dnld_rdy = true; |
565 | 565 | ||
566 | hdev->type = HCI_SDIO; | 566 | hdev->bus = HCI_SDIO; |
567 | hdev->open = btmrvl_open; | 567 | hdev->open = btmrvl_open; |
568 | hdev->close = btmrvl_close; | 568 | hdev->close = btmrvl_close; |
569 | hdev->flush = btmrvl_flush; | 569 | hdev->flush = btmrvl_flush; |
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c index 7e298275c8f6..76e5127884f0 100644 --- a/drivers/bluetooth/btsdio.c +++ b/drivers/bluetooth/btsdio.c | |||
@@ -326,7 +326,7 @@ static int btsdio_probe(struct sdio_func *func, | |||
326 | return -ENOMEM; | 326 | return -ENOMEM; |
327 | } | 327 | } |
328 | 328 | ||
329 | hdev->type = HCI_SDIO; | 329 | hdev->bus = HCI_SDIO; |
330 | hdev->driver_data = data; | 330 | hdev->driver_data = data; |
331 | 331 | ||
332 | data->hdev = hdev; | 332 | data->hdev = hdev; |
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 91c523099804..60c0953d7d00 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -500,7 +500,7 @@ static int btuart_open(btuart_info_t *info) | |||
500 | 500 | ||
501 | info->hdev = hdev; | 501 | info->hdev = hdev; |
502 | 502 | ||
503 | hdev->type = HCI_PCCARD; | 503 | hdev->bus = HCI_PCCARD; |
504 | hdev->driver_data = info; | 504 | hdev->driver_data = info; |
505 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); | 505 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); |
506 | 506 | ||
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index a699f09ddf7c..5d9cc53bd643 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -939,7 +939,7 @@ static int btusb_probe(struct usb_interface *intf, | |||
939 | return -ENOMEM; | 939 | return -ENOMEM; |
940 | } | 940 | } |
941 | 941 | ||
942 | hdev->type = HCI_USB; | 942 | hdev->bus = HCI_USB; |
943 | hdev->driver_data = data; | 943 | hdev->driver_data = data; |
944 | 944 | ||
945 | data->hdev = hdev; | 945 | data->hdev = hdev; |
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index 697591941e17..17788317c51a 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -485,7 +485,7 @@ static int dtl1_open(dtl1_info_t *info) | |||
485 | 485 | ||
486 | info->hdev = hdev; | 486 | info->hdev = hdev; |
487 | 487 | ||
488 | hdev->type = HCI_PCCARD; | 488 | hdev->bus = HCI_PCCARD; |
489 | hdev->driver_data = info; | 489 | hdev->driver_data = info; |
490 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); | 490 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); |
491 | 491 | ||
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index aa0919386b8c..76a1abb8f214 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -383,7 +383,7 @@ static int hci_uart_register_dev(struct hci_uart *hu) | |||
383 | 383 | ||
384 | hu->hdev = hdev; | 384 | hu->hdev = hdev; |
385 | 385 | ||
386 | hdev->type = HCI_UART; | 386 | hdev->bus = HCI_UART; |
387 | hdev->driver_data = hu; | 387 | hdev->driver_data = hu; |
388 | 388 | ||
389 | hdev->open = hci_uart_open; | 389 | hdev->open = hci_uart_open; |
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 7595274103fd..bb0aefdb4267 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
@@ -236,7 +236,7 @@ static int vhci_open(struct inode *inode, struct file *file) | |||
236 | 236 | ||
237 | data->hdev = hdev; | 237 | data->hdev = hdev; |
238 | 238 | ||
239 | hdev->type = HCI_VIRTUAL; | 239 | hdev->bus = HCI_VIRTUAL; |
240 | hdev->driver_data = data; | 240 | hdev->driver_data = data; |
241 | 241 | ||
242 | hdev->open = vhci_open_dev; | 242 | hdev->open = vhci_open_dev; |
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index ed3aea1605e8..3350a665180f 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -43,7 +43,7 @@ | |||
43 | #define HCI_NOTIFY_CONN_DEL 2 | 43 | #define HCI_NOTIFY_CONN_DEL 2 |
44 | #define HCI_NOTIFY_VOICE_SETTING 3 | 44 | #define HCI_NOTIFY_VOICE_SETTING 3 |
45 | 45 | ||
46 | /* HCI device types */ | 46 | /* HCI bus types */ |
47 | #define HCI_VIRTUAL 0 | 47 | #define HCI_VIRTUAL 0 |
48 | #define HCI_USB 1 | 48 | #define HCI_USB 1 |
49 | #define HCI_PCCARD 2 | 49 | #define HCI_PCCARD 2 |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 7b86094a894b..7e65885290d5 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -70,7 +70,7 @@ struct hci_dev { | |||
70 | char name[8]; | 70 | char name[8]; |
71 | unsigned long flags; | 71 | unsigned long flags; |
72 | __u16 id; | 72 | __u16 id; |
73 | __u8 type; | 73 | __u8 bus; |
74 | bdaddr_t bdaddr; | 74 | bdaddr_t bdaddr; |
75 | __u8 dev_name[248]; | 75 | __u8 dev_name[248]; |
76 | __u8 dev_class[3]; | 76 | __u8 dev_class[3]; |
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 94ba34982021..4b62ed01ddc6 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -797,7 +797,7 @@ int hci_get_dev_info(void __user *arg) | |||
797 | 797 | ||
798 | strcpy(di.name, hdev->name); | 798 | strcpy(di.name, hdev->name); |
799 | di.bdaddr = hdev->bdaddr; | 799 | di.bdaddr = hdev->bdaddr; |
800 | di.type = hdev->type; | 800 | di.type = hdev->bus; |
801 | di.flags = hdev->flags; | 801 | di.flags = hdev->flags; |
802 | di.pkt_type = hdev->pkt_type; | 802 | di.pkt_type = hdev->pkt_type; |
803 | di.acl_mtu = hdev->acl_mtu; | 803 | di.acl_mtu = hdev->acl_mtu; |
@@ -869,8 +869,8 @@ int hci_register_dev(struct hci_dev *hdev) | |||
869 | struct list_head *head = &hci_dev_list, *p; | 869 | struct list_head *head = &hci_dev_list, *p; |
870 | int i, id = 0; | 870 | int i, id = 0; |
871 | 871 | ||
872 | BT_DBG("%p name %s type %d owner %p", hdev, hdev->name, | 872 | BT_DBG("%p name %s bus %d owner %p", hdev, hdev->name, |
873 | hdev->type, hdev->owner); | 873 | hdev->bus, hdev->owner); |
874 | 874 | ||
875 | if (!hdev->open || !hdev->close || !hdev->destruct) | 875 | if (!hdev->open || !hdev->close || !hdev->destruct) |
876 | return -EINVAL; | 876 | return -EINVAL; |
@@ -946,7 +946,7 @@ int hci_unregister_dev(struct hci_dev *hdev) | |||
946 | { | 946 | { |
947 | int i; | 947 | int i; |
948 | 948 | ||
949 | BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); | 949 | BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus); |
950 | 950 | ||
951 | write_lock_bh(&hci_dev_list_lock); | 951 | write_lock_bh(&hci_dev_list_lock); |
952 | list_del(&hdev->list); | 952 | list_del(&hdev->list); |
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 2bc6f6a8de68..9b5f376813b7 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -166,9 +166,9 @@ void hci_conn_del_sysfs(struct hci_conn *conn) | |||
166 | queue_work(bt_workq, &conn->work_del); | 166 | queue_work(bt_workq, &conn->work_del); |
167 | } | 167 | } |
168 | 168 | ||
169 | static inline char *host_typetostr(int type) | 169 | static inline char *host_bustostr(int bus) |
170 | { | 170 | { |
171 | switch (type) { | 171 | switch (bus) { |
172 | case HCI_VIRTUAL: | 172 | case HCI_VIRTUAL: |
173 | return "VIRTUAL"; | 173 | return "VIRTUAL"; |
174 | case HCI_USB: | 174 | case HCI_USB: |
@@ -188,10 +188,10 @@ static inline char *host_typetostr(int type) | |||
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | static ssize_t show_type(struct device *dev, struct device_attribute *attr, char *buf) | 191 | static ssize_t show_bus(struct device *dev, struct device_attribute *attr, char *buf) |
192 | { | 192 | { |
193 | struct hci_dev *hdev = dev_get_drvdata(dev); | 193 | struct hci_dev *hdev = dev_get_drvdata(dev); |
194 | return sprintf(buf, "%s\n", host_typetostr(hdev->type)); | 194 | return sprintf(buf, "%s\n", host_bustostr(hdev->bus)); |
195 | } | 195 | } |
196 | 196 | ||
197 | static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf) | 197 | static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf) |
@@ -355,7 +355,7 @@ static ssize_t store_sniff_min_interval(struct device *dev, struct device_attrib | |||
355 | return count; | 355 | return count; |
356 | } | 356 | } |
357 | 357 | ||
358 | static DEVICE_ATTR(type, S_IRUGO, show_type, NULL); | 358 | static DEVICE_ATTR(bus, S_IRUGO, show_bus, NULL); |
359 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | 359 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
360 | static DEVICE_ATTR(class, S_IRUGO, show_class, NULL); | 360 | static DEVICE_ATTR(class, S_IRUGO, show_class, NULL); |
361 | static DEVICE_ATTR(address, S_IRUGO, show_address, NULL); | 361 | static DEVICE_ATTR(address, S_IRUGO, show_address, NULL); |
@@ -373,7 +373,7 @@ static DEVICE_ATTR(sniff_min_interval, S_IRUGO | S_IWUSR, | |||
373 | show_sniff_min_interval, store_sniff_min_interval); | 373 | show_sniff_min_interval, store_sniff_min_interval); |
374 | 374 | ||
375 | static struct attribute *bt_host_attrs[] = { | 375 | static struct attribute *bt_host_attrs[] = { |
376 | &dev_attr_type.attr, | 376 | &dev_attr_bus.attr, |
377 | &dev_attr_name.attr, | 377 | &dev_attr_name.attr, |
378 | &dev_attr_class.attr, | 378 | &dev_attr_class.attr, |
379 | &dev_attr_address.attr, | 379 | &dev_attr_address.attr, |
@@ -414,7 +414,7 @@ int hci_register_sysfs(struct hci_dev *hdev) | |||
414 | struct device *dev = &hdev->dev; | 414 | struct device *dev = &hdev->dev; |
415 | int err; | 415 | int err; |
416 | 416 | ||
417 | BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); | 417 | BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus); |
418 | 418 | ||
419 | dev->type = &bt_host; | 419 | dev->type = &bt_host; |
420 | dev->class = bt_class; | 420 | dev->class = bt_class; |
@@ -433,7 +433,7 @@ int hci_register_sysfs(struct hci_dev *hdev) | |||
433 | 433 | ||
434 | void hci_unregister_sysfs(struct hci_dev *hdev) | 434 | void hci_unregister_sysfs(struct hci_dev *hdev) |
435 | { | 435 | { |
436 | BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); | 436 | BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus); |
437 | 437 | ||
438 | device_del(&hdev->dev); | 438 | device_del(&hdev->dev); |
439 | } | 439 | } |