Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1535559

[PATCH 11/19] staging: iio: isl29028: made column alignment in isl29028_channels consistent

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Brian Masney <masneyb@onstation.org>
Newsgroups linux.kernel
Subject [PATCH 11/19] staging: iio: isl29028: made column alignment in isl29028_channels consistent
Date Sun, 04 Dec 2016 03:30:01 +0100
Message-ID <sKuIV-194-9@gated-at.bofh.it> (permalink)
References <sKuIV-194-3@gated-at.bofh.it>
X-Original-To jic23@kernel.org, linux-iio@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=simple/simple; d=onstation.org; s=default; t=1480817994; bh=BNh6ok2zxdTDsWC2nfjwztyOihpZH+Te4NFS3Xicv3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=my3O7MEYrQGKtNDjVGzJzbqsKvpdIWrtPG2N4VMlyP5EPYpVpjEuB0gwncFc0T3Yq /IB2wGvlJ05E5gyTqfajuJkNF8y0bXLo8SYRHlqxreqBWdnoUnvmAHetaSPmmFGYwV 16kCmgVeyp3zenaI8lOKDfaxAjEez2ADQ0XBdLAA=
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org, ldewangan@nvidia.com
X-Original-Date Sat, 3 Dec 2016 21:19:35 -0500
X-Original-Message-ID <1480817983-32359-12-git-send-email-masneyb@onstation.org>
X-Original-References <1480817983-32359-1-git-send-email-masneyb@onstation.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1535559

Show key headers only | View raw


The three info_mask_separate members OR several BIT(xxx) fields
together. This patch changes the column alignment of these fields to be
aligned at the same column to improve the overall code readability. It
also moves the { for the next channel to the next line to improve code
readability.

Signed-off-by: Brian Masney <masneyb@onstation.org>
---
 drivers/staging/iio/light/isl29028.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 0e727ba..218d165 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -419,14 +419,16 @@ static const struct iio_chan_spec isl29028_channels[] = {
 	{
 		.type = IIO_LIGHT,
 		.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) |
-		BIT(IIO_CHAN_INFO_SCALE),
-	}, {
+				      BIT(IIO_CHAN_INFO_SCALE),
+	},
+	{
 		.type = IIO_INTENSITY,
 		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
-	}, {
+	},
+	{
 		.type = IIO_PROXIMITY,
 		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
-		BIT(IIO_CHAN_INFO_SAMP_FREQ),
+				      BIT(IIO_CHAN_INFO_SAMP_FREQ),
 	}
 };
 
-- 
2.7.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 11/19] staging: iio: isl29028: made column alignment in isl29028_channels consistent Brian Masney <masneyb@onstation.org> - 2016-12-04 03:30 +0100

csiph-web