Skip to content

Commit

Permalink
iio: accel: kxcjk-1013: add some blank lines for readability
Browse files Browse the repository at this point in the history
Some extra blank lines between if checks don't hurt and improve
readability.

Signed-off-by: Antonio Ospite <[email protected]>
Cc: Bastien Nocera <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
ao2 authored and jic23 committed May 7, 2015
1 parent 61e2c70 commit e693e15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/iio/accel/kxcjk-1013.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -1172,6 +1174,7 @@ static int kxcjk1013_gpio_probe(struct i2c_client *client,

if (!client)
return -EINVAL;

if (data->is_smo8500_device)
return -ENOTSUPP;

Expand Down

0 comments on commit e693e15

Please sign in to comment.