Commit 862cb6ce authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Jonathan Cameron

Staging: iio: dummy: Fix blank line warnings

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: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 1ce96bd3
...@@ -214,6 +214,7 @@ static struct device iio_evgen_dev = { ...@@ -214,6 +214,7 @@ static struct device iio_evgen_dev = {
.groups = iio_evgen_groups, .groups = iio_evgen_groups,
.release = &iio_evgen_release, .release = &iio_evgen_release,
}; };
static __init int iio_dummy_evgen_init(void) static __init int iio_dummy_evgen_init(void)
{ {
int ret = iio_dummy_evgen_create(); int ret = iio_dummy_evgen_create();
......
...@@ -611,7 +611,6 @@ static int iio_dummy_probe(int index) ...@@ -611,7 +611,6 @@ static int iio_dummy_probe(int index)
*/ */
iio_dummy_devs[index] = indio_dev; iio_dummy_devs[index] = indio_dev;
/* /*
* Set the device name. * Set the device name.
* *
...@@ -675,7 +674,6 @@ static void iio_dummy_remove(int index) ...@@ -675,7 +674,6 @@ static void iio_dummy_remove(int index)
*/ */
struct iio_dev *indio_dev = iio_dummy_devs[index]; struct iio_dev *indio_dev = iio_dummy_devs[index];
/* Unregister the device */ /* Unregister the device */
iio_device_unregister(indio_dev); iio_device_unregister(indio_dev);
......
...@@ -119,6 +119,7 @@ static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev) ...@@ -119,6 +119,7 @@ static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
{ {
return 0; return 0;
}; };
static inline static inline
void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev) void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev)
{}; {};
......
...@@ -32,6 +32,7 @@ static const s16 fakedata[] = { ...@@ -32,6 +32,7 @@ static const s16 fakedata[] = {
[diffvoltage3m4] = -2, [diffvoltage3m4] = -2,
[accelx] = 344, [accelx] = 344,
}; };
/** /**
* iio_simple_dummy_trigger_h() - the trigger handler function * iio_simple_dummy_trigger_h() - the trigger handler function
* @irq: the interrupt number * @irq: the interrupt number
...@@ -178,7 +179,6 @@ int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev) ...@@ -178,7 +179,6 @@ int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
iio_kfifo_free(indio_dev->buffer); iio_kfifo_free(indio_dev->buffer);
error_ret: error_ret:
return ret; return ret;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment