diff options
author | Roberta Dobrescu <roberta.dobrescu@gmail.com> | 2014-12-16 11:16:06 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-26 12:15:36 +0000 |
commit | 450a5ff768b008817d7914e3d2db16400e571dff (patch) | |
tree | 46d57e1fcc253ab254485f48d3f32147d49ef6af | |
parent | 60347e71c0d1f001aab75cb2569729980e2d737a (diff) | |
download | linux-450a5ff768b008817d7914e3d2db16400e571dff.tar.gz linux-450a5ff768b008817d7914e3d2db16400e571dff.tar.bz2 linux-450a5ff768b008817d7914e3d2db16400e571dff.zip |
iio: trigger: Add a blank line after declarations
This patch fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/trigger/iio-trig-sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index 254c7e906127..3dfab2bc6d69 100644 --- a/drivers/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c @@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id) struct iio_sysfs_trig *t; int ret; bool foundit = false; + mutex_lock(&iio_sysfs_trig_list_mut); list_for_each_entry(t, &iio_sysfs_trig_list, l) if (id == t->id) { @@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id) { bool foundit = false; struct iio_sysfs_trig *t; + mutex_lock(&iio_sysfs_trig_list_mut); list_for_each_entry(t, &iio_sysfs_trig_list, l) if (id == t->id) { |