diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-06-18 00:32:05 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-21 14:28:28 +0100 |
commit | 8bf62ec83c89eda4114aae90c593f49649af76bd (patch) | |
tree | b8142d89a43f747fd33c69115ea48f519721d5b2 /drivers/iio/light | |
parent | 054101c186b9e41d2b57543070c4a520d38402da (diff) | |
download | blackbird-op-linux-8bf62ec83c89eda4114aae90c593f49649af76bd.tar.gz blackbird-op-linux-8bf62ec83c89eda4114aae90c593f49649af76bd.zip |
iio:light:cm3323: add empty lines for code structure
Add some empty lines to visually separate logical structure blocks, as
after if-blocks or before regular returns.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r-- | drivers/iio/light/cm3323.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/light/cm3323.c b/drivers/iio/light/cm3323.c index 57ff0a10890e..54c9e2df43f2 100644 --- a/drivers/iio/light/cm3323.c +++ b/drivers/iio/light/cm3323.c @@ -133,9 +133,11 @@ static int cm3323_set_it_bits(struct cm3323_data *data, int val, int val2) return ret; data->reg_conf = reg_conf; + return 0; } } + return -EINVAL; } @@ -148,6 +150,7 @@ static int cm3323_get_it_bits(struct cm3323_data *data) if (bits >= ARRAY_SIZE(cm3323_int_time)) return -EINVAL; + return bits; } @@ -243,11 +246,13 @@ static int cm3323_probe(struct i2c_client *client, dev_err(&client->dev, "cm3323 chip init failed\n"); return ret; } + ret = iio_device_register(indio_dev); if (ret < 0) { dev_err(&client->dev, "failed to register iio dev\n"); goto err_init; } + return 0; err_init: cm3323_disable(indio_dev); |