iio: accel: kxcjk-1013: add some blank lines for readability
authorAntonio Ospite <ao2@ao2.it>
Mon, 4 May 2015 09:13:04 +0000 (11:13 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 May 2015 09:42:31 +0000 (10:42 +0100)
Some extra blank lines between if checks don't hurt and improve
readability.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Cc: Bastien Nocera <hadess@hadess.net>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c

index 2285bca3b739da7cbcbc264c4603830ee15e6036..0d9bd35ff2586bfe4c5d8c776e7196d62a85c474 100644 (file)
@@ -1156,8 +1156,10 @@ static const char *kxcjk1013_match_acpi_device(struct device *dev,
        id = acpi_match_device(dev->driver->acpi_match_table, dev);
        if (!id)
                return NULL;
+
        if (strcmp(id->id, "SMO8500") == 0)
                *is_smo8500_device = true;
+
        *chipset = (enum kx_chipset)id->driver_data;
 
        return dev_name(dev);
@@ -1172,6 +1174,7 @@ static int kxcjk1013_gpio_probe(struct i2c_client *client,
 
        if (!client)
                return -EINVAL;
+
        if (data->is_smo8500_device)
                return -ENOTSUPP;