diff options
author | Catalina Mocanu <catalina.mocanu@gmail.com> | 2014-09-18 21:55:06 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 23:24:19 (GMT) |
commit | 4b4c727519b510ab9d9b33de51ea41fc34b9ef27 (patch) | |
tree | 941e79614e31d0f012b5311170c023995c6bc712 | |
parent | b581c3d9a90772613e05e659b4e8defc81704212 (diff) | |
download | linux-4b4c727519b510ab9d9b33de51ea41fc34b9ef27.tar.xz |
staging: iio: dummy: add blank lines after declarations.
This fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations.
Signed-off-by: Catalina Mocanu <catalina.mocanu@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/iio/iio_dummy_evgen.c | 1 | ||||
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy_buffer.c | 1 | ||||
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy_events.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/iio/iio_dummy_evgen.c b/drivers/staging/iio/iio_dummy_evgen.c index 132d278..5a804f1 100644 --- a/drivers/staging/iio/iio_dummy_evgen.c +++ b/drivers/staging/iio/iio_dummy_evgen.c @@ -202,6 +202,7 @@ static struct device iio_evgen_dev = { static __init int iio_dummy_evgen_init(void) { int ret = iio_dummy_evgen_create(); + if (ret < 0) return ret; device_initialize(&iio_evgen_dev); diff --git a/drivers/staging/iio/iio_simple_dummy_buffer.c b/drivers/staging/iio/iio_simple_dummy_buffer.c index 46c134b..fd74f91 100644 --- a/drivers/staging/iio/iio_simple_dummy_buffer.c +++ b/drivers/staging/iio/iio_simple_dummy_buffer.c @@ -71,6 +71,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) * in the constant table fakedata. */ int i, j; + for (i = 0, j = 0; i < bitmap_weight(indio_dev->active_scan_mask, indio_dev->masklength); diff --git a/drivers/staging/iio/iio_simple_dummy_events.c b/drivers/staging/iio/iio_simple_dummy_events.c index 812ebd0..64b45b0 100644 --- a/drivers/staging/iio/iio_simple_dummy_events.c +++ b/drivers/staging/iio/iio_simple_dummy_events.c @@ -148,6 +148,7 @@ int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, static irqreturn_t iio_simple_dummy_event_handler(int irq, void *private) { struct iio_dev *indio_dev = private; + iio_push_event(indio_dev, IIO_EVENT_CODE(IIO_VOLTAGE, 0, 0, IIO_EV_DIR_RISING, |