mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
hwmon: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
cd3ed6b4dd
commit
739cf3a269
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user