diff options
author | Antonio Ospite <ao2@ao2.it> | 2015-05-04 11:13:04 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-07 10:42:31 +0100 |
commit | e693e15e869fb314c86770c1f1451fdd013654c0 (patch) | |
tree | 1dce96e74113d49effede6cf91ba17815acc1a8d /drivers/iio/accel/kxcjk-1013.c | |
parent | 61e2c70da9cfc79e8485eafa0f98b5919b04bbe1 (diff) | |
download | talos-obmc-linux-e693e15e869fb314c86770c1f1451fdd013654c0.tar.gz talos-obmc-linux-e693e15e869fb314c86770c1f1451fdd013654c0.zip |
iio: accel: kxcjk-1013: add some blank lines for readability
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>
Diffstat (limited to 'drivers/iio/accel/kxcjk-1013.c')
-rw-r--r-- | drivers/iio/accel/kxcjk-1013.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 2285bca3b739..0d9bd35ff258 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -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; |