Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 739cf3a2 authored by Kay Sievers's avatar Kay Sievers Committed by Greg Kroah-Hartman
Browse files

hwmon: struct device - replace bus_id with dev_name(), dev_set_name()

parent cd3ed6b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ void hwmon_device_unregister(struct device *dev)
{
	int id;

	if (likely(sscanf(dev->bus_id, HWMON_ID_FORMAT, &id) == 1)) {
	if (likely(sscanf(dev_name(dev), HWMON_ID_FORMAT, &id) == 1)) {
		device_unregister(dev);
		spin_lock(&idr_lock);
		idr_remove(&hwmon_idr, id);
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
	}

	dev_info(&client->dev, "%s: sensor '%s'\n",
		data->hwmon_dev->bus_id, client->name);
		 dev_name(data->hwmon_dev), client->name);

	return 0;