Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1179746 > unrolled thread

[PATCH] iio: accel: kxcjk-1013: Remove blank lines

Started byAna Calinov <ana.calinov@gmail.com>
First post2015-07-08 14:50 +0200
Last post2015-07-11 19:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] iio: accel: kxcjk-1013: Remove blank lines Ana Calinov <ana.calinov@gmail.com> - 2015-07-08 14:50 +0200
    Re: [PATCH] iio: accel: kxcjk-1013: Remove blank lines Daniel Baluta <daniel.baluta@intel.com> - 2015-07-08 15:00 +0200
      Re: [PATCH] iio: accel: kxcjk-1013: Remove blank lines Jonathan Cameron <jic23@kernel.org> - 2015-07-11 19:30 +0200

#1179746 — [PATCH] iio: accel: kxcjk-1013: Remove blank lines

FromAna Calinov <ana.calinov@gmail.com>
Date2015-07-08 14:50 +0200
Subject[PATCH] iio: accel: kxcjk-1013: Remove blank lines
Message-ID<pJWXw-2KA-9@gated-at.bofh.it>
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>
---
 drivers/iio/accel/kxcjk-1013.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c
index 567de26..f069c41 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;
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1179759

FromDaniel Baluta <daniel.baluta@intel.com>
Date2015-07-08 15:00 +0200
Message-ID<pJX7d-2OK-33@gated-at.bofh.it>
In reply to#1179746
On Wed, Jul 8, 2015 at 3:44 PM, Ana Calinov <ana.calinov@gmail.com> wrote:
> 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>


Looks good to me.

Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>

Thanks Ana!

Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1182194

FromJonathan Cameron <jic23@kernel.org>
Date2015-07-11 19:30 +0200
Message-ID<pL6L9-5V0-13@gated-at.bofh.it>
In reply to#1179759
On 08/07/15 13:56, Daniel Baluta wrote:
> On Wed, Jul 8, 2015 at 3:44 PM, Ana Calinov <ana.calinov@gmail.com> wrote:
>> 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>
> 
> 
> Looks good to me.
> 
> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
> 
> Thanks Ana!
> 
> Daniel.
> 
Applied to the togreg branch of iio.git.  Will push out
as testing for the autobuilders to play with it.

A sensible checkpatch based cleanup. Thanks

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web