Commit c099225f authored by Cristina Moraru's avatar Cristina Moraru Committed by Jonathan Cameron

iio: hmc5843: Swap suspend and resume implementations

Swap implementations of hmc5843_common_suspend and
hmc5843_common_resume functions for they have been
inversed. Device should go on SLEEP mode on suspend
and on CONTINUOUS mode on resume.
Signed-off-by: default avatarCristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d69051b4
...@@ -565,14 +565,14 @@ static const unsigned long hmc5843_scan_masks[] = {0x7, 0}; ...@@ -565,14 +565,14 @@ static const unsigned long hmc5843_scan_masks[] = {0x7, 0};
int hmc5843_common_suspend(struct device *dev) int hmc5843_common_suspend(struct device *dev)
{ {
return hmc5843_set_mode(iio_priv(dev_get_drvdata(dev)), return hmc5843_set_mode(iio_priv(dev_get_drvdata(dev)),
HMC5843_MODE_CONVERSION_CONTINUOUS); HMC5843_MODE_SLEEP);
} }
EXPORT_SYMBOL(hmc5843_common_suspend); EXPORT_SYMBOL(hmc5843_common_suspend);
int hmc5843_common_resume(struct device *dev) int hmc5843_common_resume(struct device *dev)
{ {
return hmc5843_set_mode(iio_priv(dev_get_drvdata(dev)), return hmc5843_set_mode(iio_priv(dev_get_drvdata(dev)),
HMC5843_MODE_SLEEP); HMC5843_MODE_CONVERSION_CONTINUOUS);
} }
EXPORT_SYMBOL(hmc5843_common_resume); EXPORT_SYMBOL(hmc5843_common_resume);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment