diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-07-23 17:15:01 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-02 17:18:59 (GMT) |
commit | 019cc46d0a5c559bca6c7e949cc277f529a51296 (patch) | |
tree | 60ed66e80eaa16f2f27c471e0225b58e92f4f78d /drivers/iio | |
parent | 1506f3cd0b8169773188a080d367c2ed019373a3 (diff) | |
download | linux-019cc46d0a5c559bca6c7e949cc277f529a51296.tar.xz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetometer/bmc150_magn.c index 9ae6479..57f21fe 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)); |