diff options
author | Murilo Opsfelder Araujo <mopsfelder@gmail.com> | 2014-07-08 00:22:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-08-07 09:11:33 (GMT) |
commit | d7b79519faa926a9d6d1cdebfddea7a58a9951f3 (patch) | |
tree | 93262d5ccc3597f3b9113a4ab0bbe96f31c687f1 /drivers/staging/iio/accel/sca3000_core.c | |
parent | 2f29c16889ae71b42aefbe235867d88f8c892548 (diff) | |
download | linux-d7b79519faa926a9d6d1cdebfddea7a58a9951f3.tar.xz |
staging: iio: accel: Add blank lines between declarations and code
This patch adds missing blank lines between declarations and code and
fixes lines starting by spaces, satisfying checkpatch.pl.
Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/accel/sca3000_core.c')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c index 1ce037a..e4e5639 100644 --- a/drivers/staging/iio/accel/sca3000_core.c +++ b/drivers/staging/iio/accel/sca3000_core.c @@ -714,6 +714,7 @@ static int sca3000_read_thresh(struct iio_dev *indio_dev, int ret, i; struct sca3000_state *st = iio_priv(indio_dev); int num = chan->channel2; + mutex_lock(&st->lock); ret = sca3000_read_ctrl_reg(st, sca3000_addresses[num][1]); mutex_unlock(&st->lock); |