summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-07-29 23:39:39 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-08 12:24:09 +0100
commitdca5d2846514c0f3d95827d291310a403fc0ebb7 (patch)
tree76ad55899a654e7912ad45707f741f10b0c127ce /drivers/iio
parent7d73e02c5d11ac1298b0a363b57d713969c02bbd (diff)
downloadop-kernel-dev-dca5d2846514c0f3d95827d291310a403fc0ebb7.zip
op-kernel-dev-dca5d2846514c0f3d95827d291310a403fc0ebb7.tar.gz
iio:accel:stk8312: code style cleanup
Adjust some indentation issues to make checkpatch.pl happy in strict mode. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/stk8312.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iio/accel/stk8312.c b/drivers/iio/accel/stk8312.c
index 4a69744..c5a4765 100644
--- a/drivers/iio/accel/stk8312.c
+++ b/drivers/iio/accel/stk8312.c
@@ -157,8 +157,7 @@ static int stk8312_otp_init(struct stk8312_data *data)
if (ret < 0)
goto exit_err;
- ret = i2c_smbus_write_byte_data(data->client,
- STK8312_REG_AFECTRL, ret);
+ ret = i2c_smbus_write_byte_data(data->client, STK8312_REG_AFECTRL, ret);
if (ret < 0)
goto exit_err;
msleep(150);
@@ -458,7 +457,7 @@ static irqreturn_t stk8312_trigger_handler(int irq, void *p)
data->buffer[2] = buffer[2];
} else {
for_each_set_bit(bit, indio_dev->active_scan_mask,
- indio_dev->masklength) {
+ indio_dev->masklength) {
ret = stk8312_read_accel(data, bit);
if (ret < 0) {
mutex_unlock(&data->lock);
OpenPOWER on IntegriCloud