The hdev->type is misnamed and should be actually hdev->bus instead. So
convert it now.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
15 files changed:
hdev->driver_data = data;
SET_HCIDEV_DEV(hdev, &intf->dev);
hdev->driver_data = data;
SET_HCIDEV_DEV(hdev, &intf->dev);
- hdev->type = HCI_PCCARD;
+ hdev->bus = HCI_PCCARD;
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = data;
data->hdev = hdev;
hdev->driver_data = data;
data->hdev = hdev;
- hdev->type = HCI_PCCARD;
+ hdev->bus = HCI_PCCARD;
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
priv->btmrvl_dev.tx_dnld_rdy = true;
priv->btmrvl_dev.tx_dnld_rdy = true;
hdev->open = btmrvl_open;
hdev->close = btmrvl_close;
hdev->flush = btmrvl_flush;
hdev->open = btmrvl_open;
hdev->close = btmrvl_close;
hdev->flush = btmrvl_flush;
hdev->driver_data = data;
data->hdev = hdev;
hdev->driver_data = data;
data->hdev = hdev;
- hdev->type = HCI_PCCARD;
+ hdev->bus = HCI_PCCARD;
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = data;
data->hdev = hdev;
hdev->driver_data = data;
data->hdev = hdev;
- hdev->type = HCI_PCCARD;
+ hdev->bus = HCI_PCCARD;
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = info;
SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
hdev->driver_data = hu;
hdev->open = hci_uart_open;
hdev->driver_data = hu;
hdev->open = hci_uart_open;
- hdev->type = HCI_VIRTUAL;
+ hdev->bus = HCI_VIRTUAL;
hdev->driver_data = data;
hdev->open = vhci_open_dev;
hdev->driver_data = data;
hdev->open = vhci_open_dev;
#define HCI_NOTIFY_CONN_DEL 2
#define HCI_NOTIFY_VOICE_SETTING 3
#define HCI_NOTIFY_CONN_DEL 2
#define HCI_NOTIFY_VOICE_SETTING 3
#define HCI_VIRTUAL 0
#define HCI_USB 1
#define HCI_PCCARD 2
#define HCI_VIRTUAL 0
#define HCI_USB 1
#define HCI_PCCARD 2
char name[8];
unsigned long flags;
__u16 id;
char name[8];
unsigned long flags;
__u16 id;
bdaddr_t bdaddr;
__u8 dev_name[248];
__u8 dev_class[3];
bdaddr_t bdaddr;
__u8 dev_name[248];
__u8 dev_class[3];
strcpy(di.name, hdev->name);
di.bdaddr = hdev->bdaddr;
strcpy(di.name, hdev->name);
di.bdaddr = hdev->bdaddr;
di.flags = hdev->flags;
di.pkt_type = hdev->pkt_type;
di.acl_mtu = hdev->acl_mtu;
di.flags = hdev->flags;
di.pkt_type = hdev->pkt_type;
di.acl_mtu = hdev->acl_mtu;
struct list_head *head = &hci_dev_list, *p;
int i, id = 0;
struct list_head *head = &hci_dev_list, *p;
int i, id = 0;
- BT_DBG("%p name %s type %d owner %p", hdev, hdev->name,
- hdev->type, hdev->owner);
+ BT_DBG("%p name %s bus %d owner %p", hdev, hdev->name,
+ hdev->bus, hdev->owner);
if (!hdev->open || !hdev->close || !hdev->destruct)
return -EINVAL;
if (!hdev->open || !hdev->close || !hdev->destruct)
return -EINVAL;
- BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
+ BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
write_lock_bh(&hci_dev_list_lock);
list_del(&hdev->list);
write_lock_bh(&hci_dev_list_lock);
list_del(&hdev->list);
queue_work(bt_workq, &conn->work_del);
}
queue_work(bt_workq, &conn->work_del);
}
-static inline char *host_typetostr(int type)
+static inline char *host_bustostr(int bus)
case HCI_VIRTUAL:
return "VIRTUAL";
case HCI_USB:
case HCI_VIRTUAL:
return "VIRTUAL";
case HCI_USB:
-static ssize_t show_type(struct device *dev, struct device_attribute *attr, char *buf)
+static ssize_t show_bus(struct device *dev, struct device_attribute *attr, char *buf)
{
struct hci_dev *hdev = dev_get_drvdata(dev);
{
struct hci_dev *hdev = dev_get_drvdata(dev);
- return sprintf(buf, "%s\n", host_typetostr(hdev->type));
+ return sprintf(buf, "%s\n", host_bustostr(hdev->bus));
}
static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
}
static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
-static DEVICE_ATTR(type, S_IRUGO, show_type, NULL);
+static DEVICE_ATTR(bus, S_IRUGO, show_bus, NULL);
static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
static DEVICE_ATTR(class, S_IRUGO, show_class, NULL);
static DEVICE_ATTR(address, S_IRUGO, show_address, NULL);
static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
static DEVICE_ATTR(class, S_IRUGO, show_class, NULL);
static DEVICE_ATTR(address, S_IRUGO, show_address, NULL);
show_sniff_min_interval, store_sniff_min_interval);
static struct attribute *bt_host_attrs[] = {
show_sniff_min_interval, store_sniff_min_interval);
static struct attribute *bt_host_attrs[] = {
&dev_attr_name.attr,
&dev_attr_class.attr,
&dev_attr_address.attr,
&dev_attr_name.attr,
&dev_attr_class.attr,
&dev_attr_address.attr,
struct device *dev = &hdev->dev;
int err;
struct device *dev = &hdev->dev;
int err;
- BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
+ BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
dev->type = &bt_host;
dev->class = bt_class;
dev->type = &bt_host;
dev->class = bt_class;
void hci_unregister_sysfs(struct hci_dev *hdev)
{
void hci_unregister_sysfs(struct hci_dev *hdev)
{
- BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
+ BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
device_del(&hdev->dev);
}
device_del(&hdev->dev);
}