projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1506f3c
)
iio: magn: bmc150_magn: add locking comment for runtime resume
author
Irina Tirdea
<irina.tirdea@intel.com>
Thu, 23 Jul 2015 17:15:01 +0000
(20:15 +0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 2 Aug 2015 17:18:59 +0000
(18:18 +0100)
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>
drivers/iio/magnetometer/bmc150_magn.c
patch
|
blob
|
history
diff --git
a/drivers/iio/magnetometer/bmc150_magn.c
b/drivers/iio/magnetometer/bmc150_magn.c
index
9ae6479
..
57f21fe
100644
(file)
--- 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));