]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: iio: accel: Add blank lines between declarations and code
authorMurilo Opsfelder Araujo <mopsfelder@gmail.com>
Tue, 8 Jul 2014 00:22:00 +0000 (01:22 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 Aug 2014 09:11:33 +0000 (10:11 +0100)
This patch adds missing blank lines between declarations and code and
fixes lines starting by spaces, satisfying checkpatch.pl.

Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/adis16201_core.c
drivers/staging/iio/accel/adis16203_core.c
drivers/staging/iio/accel/adis16204_core.c
drivers/staging/iio/accel/adis16209_core.c
drivers/staging/iio/accel/adis16240_core.c
drivers/staging/iio/accel/lis3l02dq_core.c
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/iio/accel/sca3000_core.c

index 50ba1fa7f98af3226e4ea76256e6b1ba0065c552..7eae5fd0f39339c139c68e5f7cfb39ad8904d034 100644 (file)
@@ -111,6 +111,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
        int bits;
        s16 val16;
        u8 addr;
+
        switch (mask) {
        case IIO_CHAN_INFO_CALIBBIAS:
                switch (chan->type) {
@@ -131,8 +132,8 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_chan_spec adis16201_channels[] = {
-  ADIS_SUPPLY_CHAN(ADIS16201_SUPPLY_OUT, ADIS16201_SCAN_SUPPLY, 0, 12),
-  ADIS_TEMP_CHAN(ADIS16201_TEMP_OUT, ADIS16201_SCAN_TEMP, 0, 12),
+       ADIS_SUPPLY_CHAN(ADIS16201_SUPPLY_OUT, ADIS16201_SCAN_SUPPLY, 0, 12),
+       ADIS_TEMP_CHAN(ADIS16201_TEMP_OUT, ADIS16201_SCAN_TEMP, 0, 12),
        ADIS_ACCEL_CHAN(X, ADIS16201_XACCL_OUT, ADIS16201_SCAN_ACC_X,
                BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
        ADIS_ACCEL_CHAN(Y, ADIS16201_YACCL_OUT, ADIS16201_SCAN_ACC_Y,
index f472137b00698d7a7e9d7c0f7d2ee426a5f21092..fbbe93f26bbe6c074d9110fa4433755a5e95a201 100644 (file)
@@ -37,6 +37,7 @@ static int adis16203_write_raw(struct iio_dev *indio_dev,
        struct adis *st = iio_priv(indio_dev);
        /* currently only one writable parameter which keeps this simple */
        u8 addr = adis16203_addresses[chan->scan_index];
+
        return adis_write_reg_16(st, addr, val & 0x3FFF);
 }
 
@@ -50,6 +51,7 @@ static int adis16203_read_raw(struct iio_dev *indio_dev,
        int bits;
        u8 addr;
        s16 val16;
+
        switch (mask) {
        case IIO_CHAN_INFO_RAW:
                return adis_single_conversion(indio_dev, chan,
index 19eaebc77d7ad8a6b199eaf18102ba00cd07bab4..4c8acbc2e44ea722429b2d27060395cb575a4640 100644 (file)
@@ -119,6 +119,7 @@ static int adis16204_write_raw(struct iio_dev *indio_dev,
        int bits;
        s16 val16;
        u8 addr;
+
        switch (mask) {
        case IIO_CHAN_INFO_CALIBBIAS:
                switch (chan->type) {
index 374dc6edbcf50a4b06940ae2497268d5faaae843..b2c7aeda75f04b2f58b0372bed51443e97cf5d70 100644 (file)
@@ -44,6 +44,7 @@ static int adis16209_write_raw(struct iio_dev *indio_dev,
        int bits;
        s16 val16;
        u8 addr;
+
        switch (mask) {
        case IIO_CHAN_INFO_CALIBBIAS:
                switch (chan->type) {
index 74ace2a8769db31a9b3fefd62e644228b5f7230f..205d6d0a22063faff8568668ad2da0fae0009866 100644 (file)
@@ -163,6 +163,7 @@ static int adis16240_write_raw(struct iio_dev *indio_dev,
        int bits = 10;
        s16 val16;
        u8 addr;
+
        switch (mask) {
        case IIO_CHAN_INFO_CALIBBIAS:
                val16 = val & ((1 << bits) - 1);
index 898653c092794c3529a6f17767cbc2c9315a2015..f5e145caffa9bcdc6cb388b07b5c590c8186ac93 100644 (file)
@@ -212,6 +212,7 @@ static int lis3l02dq_write_thresh(struct iio_dev *indio_dev,
                                  int val, int val2)
 {
        u16 value = val;
+
        return lis3l02dq_spi_write_reg_s16(indio_dev,
                                           LIS3L02DQ_REG_THS_L_ADDR,
                                           value);
@@ -226,6 +227,7 @@ static int lis3l02dq_write_raw(struct iio_dev *indio_dev,
        int ret = -EINVAL, reg;
        u8 uval;
        s8 sval;
+
        switch (mask) {
        case IIO_CHAN_INFO_CALIBBIAS:
                if (val > 255 || val < -256)
@@ -302,6 +304,7 @@ static ssize_t lis3l02dq_read_frequency(struct device *dev,
        struct iio_dev *indio_dev = dev_to_iio_dev(dev);
        int ret, len = 0;
        s8 t;
+
        ret = lis3l02dq_spi_read_reg_8(indio_dev,
                                       LIS3L02DQ_REG_CTRL_1_ADDR,
                                       (u8 *)&t);
@@ -565,6 +568,7 @@ static int lis3l02dq_read_event_config(struct iio_dev *indio_dev,
        u8 val;
        int ret;
        u8 mask = (1 << (chan->channel2*2 + (dir == IIO_EV_DIR_RISING)));
+
        ret = lis3l02dq_spi_read_reg_8(indio_dev,
                                       LIS3L02DQ_REG_WAKE_UP_CFG_ADDR,
                                       &val);
index bf33fdead479e6aa5430a2ecc5a2ab953bf2077c..1d934ee3bb5f8c9c136fc7b8cfda116726eb7427 100644 (file)
@@ -19,6 +19,7 @@ static inline u16 combine_8_to_16(u8 lower, u8 upper)
 {
        u16 _lower = lower;
        u16 _upper = upper;
+
        return _lower | (_upper << 8);
 }
 
index 1ce037af7f2ae9f9d797780d0781708c4bf0bbfa..e4e56391487aade7f42d0b172f489b6995ddedd8 100644 (file)
@@ -714,6 +714,7 @@ static int sca3000_read_thresh(struct iio_dev *indio_dev,
        int ret, i;
        struct sca3000_state *st = iio_priv(indio_dev);
        int num = chan->channel2;
+
        mutex_lock(&st->lock);
        ret = sca3000_read_ctrl_reg(st, sca3000_addresses[num][1]);
        mutex_unlock(&st->lock);