Staging: iio: dummy: Fix blank line warnings
authorCristina Opriceana <cristina.opriceana@gmail.com>
Fri, 10 Jul 2015 14:10:21 +0000 (17:10 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sat, 11 Jul 2015 17:42:15 +0000 (18:42 +0100)
Multiple blank lines should not be used as indicated by checkpatch.pl.
Also, a line should be used after a function/structure declaration.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_dummy_evgen.c
drivers/staging/iio/iio_simple_dummy.c
drivers/staging/iio/iio_simple_dummy.h
drivers/staging/iio/iio_simple_dummy_buffer.c

index c54d5b5443a637ac10c40678f7aa54fdf8349700..6d38854c38c89a1032da9aedcc4bf65fec90e216 100644 (file)
@@ -214,6 +214,7 @@ static struct device iio_evgen_dev = {
        .groups = iio_evgen_groups,
        .release = &iio_evgen_release,
 };
+
 static __init int iio_dummy_evgen_init(void)
 {
        int ret = iio_dummy_evgen_create();
index 1629a8a6bf269ef672b35820f7746c5f767039a7..381f90ff468a983ca6ff7b318dadca61a7a168b6 100644 (file)
@@ -611,7 +611,6 @@ static int iio_dummy_probe(int index)
         */
        iio_dummy_devs[index] = indio_dev;
 
-
        /*
         * Set the device name.
         *
@@ -675,7 +674,6 @@ static void iio_dummy_remove(int index)
         */
        struct iio_dev *indio_dev = iio_dummy_devs[index];
 
-
        /* Unregister the device */
        iio_device_unregister(indio_dev);
 
index e877a99540abced251ef937f70a4abe7cab89f4a..8d00224e6fadb2ba8cd37debf0bf2e17d28ed27d 100644 (file)
@@ -119,6 +119,7 @@ static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
 {
        return 0;
 };
+
 static inline
 void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev)
 {};
index a651b8922d0a93039eb8ef6c71a35e7dd9ea0f48..00ed7745f3c5b768df4c707f78c0e2ea5c388326 100644 (file)
@@ -32,6 +32,7 @@ static const s16 fakedata[] = {
        [diffvoltage3m4] = -2,
        [accelx] = 344,
 };
+
 /**
  * iio_simple_dummy_trigger_h() - the trigger handler function
  * @irq: the interrupt number
@@ -178,7 +179,6 @@ error_free_buffer:
        iio_kfifo_free(indio_dev->buffer);
 error_ret:
        return ret;
-
 }
 
 /**