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>
This commit is contained in:

committed by
David S. Miller

parent
2377989754
commit
fb28ad3590
@@ -113,8 +113,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn)
|
||||
conn->dev.class = bt_class;
|
||||
conn->dev.parent = &hdev->dev;
|
||||
|
||||
snprintf(conn->dev.bus_id, BUS_ID_SIZE, "%s:%d",
|
||||
hdev->name, conn->handle);
|
||||
dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
|
||||
|
||||
dev_set_drvdata(&conn->dev, conn);
|
||||
|
||||
@@ -132,7 +131,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn)
|
||||
*/
|
||||
static int __match_tty(struct device *dev, void *data)
|
||||
{
|
||||
return !strncmp(dev->bus_id, "rfcomm", 6);
|
||||
return !strncmp(dev_name(dev), "rfcomm", 6);
|
||||
}
|
||||
|
||||
static void del_conn(struct work_struct *work)
|
||||
@@ -421,7 +420,7 @@ int hci_register_sysfs(struct hci_dev *hdev)
|
||||
dev->class = bt_class;
|
||||
dev->parent = hdev->parent;
|
||||
|
||||
strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE);
|
||||
dev_set_name(dev, hdev->name);
|
||||
|
||||
dev_set_drvdata(dev, hdev);
|
||||
|
||||
|
Reference in New Issue
Block a user