summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-07-23 20:15:01 +0300
committerJonathan Cameron <jic23@kernel.org>2015-08-02 18:18:59 +0100
commit019cc46d0a5c559bca6c7e949cc277f529a51296 (patch)
tree60ed66e80eaa16f2f27c471e0225b58e92f4f78d /drivers/iio
parent1506f3cd0b8169773188a080d367c2ed019373a3 (diff)
downloadlinux-019cc46d0a5c559bca6c7e949cc277f529a51296.tar.bz2
iio: magn: bmc150_magn: add locking comment for runtime resume
Runtime resume function is called with the data->mutex lock held. Add a comment to indicate this. Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/magnetometer/bmc150_magn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetometer/bmc150_magn.c
index 9ae6479b8d84..57f21fe10dd7 100644
--- a/drivers/iio/magnetometer/bmc150_magn.c
+++ b/drivers/iio/magnetometer/bmc150_magn.c
@@ -1044,6 +1044,9 @@ static int bmc150_magn_runtime_suspend(struct device *dev)
return 0;
}
+/*
+ * Should be called with data->mutex held.
+ */
static int bmc150_magn_runtime_resume(struct device *dev)
{
struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));