Skip to content

Commit ba88b00

Browse files
kaysieversgregkh
authored andcommitted
power-supply: struct device - replace bus_id with dev_name(), dev_set_name()
CC: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 4bfe090 commit ba88b00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/power/ds2760_battery.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int ds2760_battery_probe(struct platform_device *pdev)
354354
pdata = pdev->dev.platform_data;
355355
di->dev = &pdev->dev;
356356
di->w1_dev = pdev->dev.parent;
357-
di->bat.name = pdev->dev.bus_id;
357+
di->bat.name = dev_name(&pdev->dev);
358358
di->bat.type = POWER_SUPPLY_TYPE_BATTERY;
359359
di->bat.properties = ds2760_battery_props;
360360
di->bat.num_properties = ARRAY_SIZE(ds2760_battery_props);
@@ -371,7 +371,7 @@ static int ds2760_battery_probe(struct platform_device *pdev)
371371
}
372372

373373
INIT_DELAYED_WORK(&di->monitor_work, ds2760_battery_work);
374-
di->monitor_wqueue = create_singlethread_workqueue(pdev->dev.bus_id);
374+
di->monitor_wqueue = create_singlethread_workqueue(dev_name(&pdev->dev));
375375
if (!di->monitor_wqueue) {
376376
retval = -ESRCH;
377377
goto workqueue_failed;

0 commit comments

Comments
 (0)