[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1407204139.16152.106.camel@joe-AO725>
Date: Mon, 04 Aug 2014 19:02:19 -0700
From: Joe Perches <joe@...ches.com>
To: Murilo Opsfelder Araujo <mopsfelder@...il.com>
Cc: linux-iio@...r.kernel.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org,
jic23@...nel.org
Subject: Re: [PATCH v2 8/8] staging: iio: accel: sca3000_core.c: Add blank
line between declarations and code
On Mon, 2014-08-04 at 22:47 -0300, Murilo Opsfelder Araujo wrote:
> This patch adds missing blank line between declarations and code, and
> adjust code to fit 80-chars limit.
[]
> diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c
[]
> @@ -506,7 +506,8 @@ static int sca3000_read_raw(struct iio_dev *indio_dev,
> mutex_unlock(&st->lock);
> return ret;
> }
> - *val = ((st->rx[0] & 0x3F) << 3) | ((st->rx[1] & 0xE0) >> 5);
> + *val = ((st->rx[0] & 0x3F) << 3)
> + | ((st->rx[1] & 0xE0) >> 5);
Please don't strain to fit 80 columns.
If this is done, please strive to make it
quickly intelligible for humans.
I think this would be better as:
+ *val = ((st->rx[0] & 0x3F) << 3) |
+ ((st->rx[1] & 0xE0) >> 5);
so that the mask and shift are aligned.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists