All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH RFT] hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe
Date: Fri, 27 Jun 2014 14:49:29 +0000	[thread overview]
Message-ID: <1403880569.12833.1.camel@phoenix> (raw)

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

             reply	other threads:[~2014-06-27 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 14:49 Axel Lin [this message]
2014-06-27 16:07 ` [lm-sensors] [PATCH RFT] hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe Guenter Roeck
2014-06-30  4:10 ` Heiko Schocher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403880569.12833.1.camel@phoenix \
    --to=axel.lin@ingics.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.