All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH RFT] hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe
@ 2014-06-27 14:49 Axel Lin
  2014-06-27 16:07 ` Guenter Roeck
  2014-06-30  4:10 ` Heiko Schocher
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2014-06-27 14:49 UTC (permalink / raw)
  To: lm-sensors

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>
---
 drivers/hwmon/tmp103.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c
index e69dbca..c9f99e0 100644
--- a/drivers/hwmon/tmp103.c
+++ b/drivers/hwmon/tmp103.c
@@ -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);
-- 
1.8.3.2




_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-30  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 14:49 [lm-sensors] [PATCH RFT] hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe Axel Lin
2014-06-27 16:07 ` Guenter Roeck
2014-06-30  4:10 ` Heiko Schocher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.