iio: imu: inv_mpu6050: Fix newlines to make code easier to read
authorDaniel Baluta <daniel.baluta@intel.com>
Thu, 18 Feb 2016 15:53:08 +0000 (17:53 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 24 Feb 2016 20:40:43 +0000 (20:40 +0000)
This fixes the following checkpatch.pl warnings:
* WARNING: Missing a blank line after declarations
* CHECK: Blank lines aren't necessary before a close brace '}'

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

index 0bcfa8d231cfd39768dbfe2ce81d55a81d820c59..231a7afe14c3335f55aa06839a80e2b0fda40d7e 100644 (file)
@@ -186,7 +186,6 @@ int inv_mpu_acpi_create_mux_client(struct i2c_client *client)
                st->mux_client = i2c_new_device(st->mux_adapter, &info);
                if (!st->mux_client)
                        return -ENODEV;
-
        }
 
        return 0;
@@ -195,6 +194,7 @@ int inv_mpu_acpi_create_mux_client(struct i2c_client *client)
 void inv_mpu_acpi_delete_mux_client(struct i2c_client *client)
 {
        struct inv_mpu6050_state *st = iio_priv(dev_get_drvdata(&client->dev));
+
        if (st->mux_client)
                i2c_unregister_device(st->mux_client);
 }
index c550ebb19ee664ab615b3f214ca2dceca8b89c39..72cc478ae9745fa0ea0d2cac4835b1cc51278c97 100644 (file)
@@ -365,6 +365,7 @@ static int inv_write_raw_get_fmt(struct iio_dev *indio_dev,
 
        return -EINVAL;
 }
+
 static int inv_mpu6050_write_accel_scale(struct inv_mpu6050_state *st, int val)
 {
        int result, i;