Skip to content

Commit

Permalink
hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe
Browse files Browse the repository at this point in the history
Add missing i2c_set_clientdata() call in tmp103_probe, this makes the
dev_get_drvdata() call in tmp103_suspend/tmp103_resume return correct
address.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Axel Lin authored and Guenter Roeck committed Aug 4, 2014
1 parent c83959f commit 233adce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/tmp103.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static int tmp103_probe(struct i2c_client *client,
return ret;
}

i2c_set_clientdata(client, regmap);
hwmon_dev = hwmon_device_register_with_groups(dev, client->name,
regmap, tmp103_groups);
return PTR_ERR_OR_ZERO(hwmon_dev);
Expand Down

0 comments on commit 233adce

Please sign in to comment.