diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2016-02-18 17:53:08 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-02-24 20:40:43 +0000 |
commit | d92241a0dc29123ebcf62505d697d9af2bf83f4d (patch) | |
tree | 7c5bd2478feba6f010d2443c37c76e250d7cdf98 /drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c | |
parent | acf7146ec9700bb71115cf1374954fe1709b6b19 (diff) |
iio: imu: inv_mpu6050: Fix newlines to make code easier to read
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>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c')
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c index 0bcfa8d231cf..231a7afe14c3 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c @@ -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); } |