diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 11:59:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 11:59:04 -0400 |
commit | e2aad1d5716c5f7fa5deb4a96e6b6a4e9f24e78b (patch) | |
tree | 389fbdf161a3c28c9b2f98fdc1ccd89d474ef884 /drivers/iio/temperature | |
parent | 3ffdea3feca9e2c95c2e93e217d77c9c368f747a (diff) | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) |
Merge 3.12-rc2 into staging-next.
This resolves the merge problem with two iio drivers that Stephen
Rothwell pointed out.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/temperature')
-rw-r--r-- | drivers/iio/temperature/tmp006.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c index 4e950979f43e..84a0789c3d96 100644 --- a/drivers/iio/temperature/tmp006.c +++ b/drivers/iio/temperature/tmp006.c | |||
@@ -252,12 +252,14 @@ static int tmp006_remove(struct i2c_client *client) | |||
252 | #ifdef CONFIG_PM_SLEEP | 252 | #ifdef CONFIG_PM_SLEEP |
253 | static int tmp006_suspend(struct device *dev) | 253 | static int tmp006_suspend(struct device *dev) |
254 | { | 254 | { |
255 | return tmp006_powerdown(iio_priv(dev_to_iio_dev(dev))); | 255 | struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); |
256 | return tmp006_powerdown(iio_priv(indio_dev)); | ||
256 | } | 257 | } |
257 | 258 | ||
258 | static int tmp006_resume(struct device *dev) | 259 | static int tmp006_resume(struct device *dev) |
259 | { | 260 | { |
260 | struct tmp006_data *data = iio_priv(dev_to_iio_dev(dev)); | 261 | struct tmp006_data *data = iio_priv(i2c_get_clientdata( |
262 | to_i2c_client(dev))); | ||
261 | return i2c_smbus_write_word_swapped(data->client, TMP006_CONFIG, | 263 | return i2c_smbus_write_word_swapped(data->client, TMP006_CONFIG, |
262 | data->config | TMP006_CONFIG_MOD_MASK); | 264 | data->config | TMP006_CONFIG_MOD_MASK); |
263 | } | 265 | } |