From: Irina Tirdea Date: Thu, 23 Jul 2015 17:15:01 +0000 (+0300) Subject: iio: magn: bmc150_magn: add locking comment for runtime resume X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=019cc46d0a5c559bca6c7e949cc277f529a51296;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jonathan Cameron --- 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));