diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-10 16:55:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-10 16:55:14 -0500 |
commit | fb28ad35906af2f042c94e2f9c0f898ef9acfa37 (patch) | |
tree | ee3d535ab38d680b424a857406789f8c28bf5266 /net/bluetooth/hci_sysfs.c | |
parent | 23779897546c1effb546ff89b89803d9d955d517 (diff) |
net: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index f4f6615cad9f..f2bbb2f65434 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -113,8 +113,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn) | |||
113 | conn->dev.class = bt_class; | 113 | conn->dev.class = bt_class; |
114 | conn->dev.parent = &hdev->dev; | 114 | conn->dev.parent = &hdev->dev; |
115 | 115 | ||
116 | snprintf(conn->dev.bus_id, BUS_ID_SIZE, "%s:%d", | 116 | dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); |
117 | hdev->name, conn->handle); | ||
118 | 117 | ||
119 | dev_set_drvdata(&conn->dev, conn); | 118 | dev_set_drvdata(&conn->dev, conn); |
120 | 119 | ||
@@ -132,7 +131,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn) | |||
132 | */ | 131 | */ |
133 | static int __match_tty(struct device *dev, void *data) | 132 | static int __match_tty(struct device *dev, void *data) |
134 | { | 133 | { |
135 | return !strncmp(dev->bus_id, "rfcomm", 6); | 134 | return !strncmp(dev_name(dev), "rfcomm", 6); |
136 | } | 135 | } |
137 | 136 | ||
138 | static void del_conn(struct work_struct *work) | 137 | static void del_conn(struct work_struct *work) |
@@ -421,7 +420,7 @@ int hci_register_sysfs(struct hci_dev *hdev) | |||
421 | dev->class = bt_class; | 420 | dev->class = bt_class; |
422 | dev->parent = hdev->parent; | 421 | dev->parent = hdev->parent; |
423 | 422 | ||
424 | strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); | 423 | dev_set_name(dev, hdev->name); |
425 | 424 | ||
426 | dev_set_drvdata(dev, hdev); | 425 | dev_set_drvdata(dev, hdev); |
427 | 426 | ||