summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAna Calinov <ana.calinov@gmail.com>2015-07-08 05:44:42 -0700
committerJonathan Cameron <jic23@kernel.org>2015-07-11 18:26:28 +0100
commite23fd9812fe729612e778ba9bd9530ce5c234f23 (patch)
tree2e3cd6e406efd83f350f90a9e6cafe3c98d2045f
parentfcc577dd55db193926537e0e4de98492d665446b (diff)
downloadlinux-stable-e23fd9812fe729612e778ba9bd9530ce5c234f23.tar.gz
linux-stable-e23fd9812fe729612e778ba9bd9530ce5c234f23.tar.bz2
linux-stable-e23fd9812fe729612e778ba9bd9530ce5c234f23.zip
iio: accel: kxcjk-1013: Remove blank lines
This patch fixes the the following errors given by checkpatch.pl with --strict: Please don't use multiple blank lines. Blank lines aren't necessary after an open brace '{'. Signed-off-by: Ana Calinov <ana.calinov@gmail.com> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/accel/kxcjk-1013.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c
index 0d9bd35ff258..8128579bff79 100644
--- a/drivers/iio/accel/kxcjk-1013.c
+++ b/drivers/iio/accel/kxcjk-1013.c
@@ -658,10 +658,8 @@ static int kxcjk1013_set_scale(struct kxcjk1013_data *data, int val)
int ret, i;
enum kxcjk1013_mode store_mode;
-
for (i = 0; i < ARRAY_SIZE(KXCJK1013_scale_table); ++i) {
if (KXCJK1013_scale_table[i].scale == val) {
-
ret = kxcjk1013_get_mode(data, &store_mode);
if (ret < 0)
return ret;
@@ -820,7 +818,6 @@ static int kxcjk1013_read_event_config(struct iio_dev *indio_dev,
enum iio_event_type type,
enum iio_event_direction dir)
{
-
struct kxcjk1013_data *data = iio_priv(indio_dev);
return data->ev_enable_state;