We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d103337 commit 919a83dCopy full SHA for 919a83d
drivers/hwmon/tmp513.c
@@ -720,10 +720,7 @@ static int tmp51x_probe(struct i2c_client *client)
720
if (!data)
721
return -ENOMEM;
722
723
- if (client->dev.of_node)
724
- data->id = (uintptr_t)device_get_match_data(&client->dev);
725
- else
726
- data->id = i2c_match_id(tmp51x_id, client)->driver_data;
+ data->id = (uintptr_t)i2c_get_match_data(client);
727
728
ret = tmp51x_configure(dev, data);
729
if (ret < 0) {
0 commit comments