Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Irina Tirdea and committed by
Jonathan Cameron
019cc46d 1506f3cd

+3
+3
drivers/iio/magnetometer/bmc150_magn.c
··· 1044 1044 return 0; 1045 1045 } 1046 1046 1047 + /* 1048 + * Should be called with data->mutex held. 1049 + */ 1047 1050 static int bmc150_magn_runtime_resume(struct device *dev) 1048 1051 { 1049 1052 struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));