Skip to content

Commit b2bf61f

Browse files
kaysieversgregkh
authored andcommitted
mfd: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: [email protected] Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kay Sievers <[email protected]>
1 parent cf43f4a commit b2bf61f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/mfd/mcp-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ EXPORT_SYMBOL(mcp_host_alloc);
214214

215215
int mcp_host_register(struct mcp *mcp)
216216
{
217-
strcpy(mcp->attached_device.bus_id, "mcp0");
217+
dev_set_name(&mcp->attached_device, "mcp0");
218218
return device_register(&mcp->attached_device);
219219
}
220220
EXPORT_SYMBOL(mcp_host_register);

drivers/mfd/ucb1x00-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static int ucb1x00_probe(struct mcp *mcp)
492492

493493
ucb->dev.class = &ucb1x00_class;
494494
ucb->dev.parent = &mcp->attached_device;
495-
strlcpy(ucb->dev.bus_id, "ucb1x00", sizeof(ucb->dev.bus_id));
495+
dev_set_name(&ucb->dev, "ucb1x00");
496496

497497
spin_lock_init(&ucb->lock);
498498
spin_lock_init(&ucb->io_lock);

0 commit comments

Comments
 (0)