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


Groups > linux.kernel > #1535560

[PATCH 06/19] staging: iio: isl29028: made alignment of variables in struct isl29028_chip consistent

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Brian Masney <masneyb@onstation.org>
Newsgroups linux.kernel
Subject [PATCH 06/19] staging: iio: isl29028: made alignment of variables in struct isl29028_chip consistent
Date Sun, 04 Dec 2016 03:30:01 +0100
Message-ID <sKuIV-194-13@gated-at.bofh.it> (permalink)
References <sKuIV-194-3@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=simple/simple; d=onstation.org; s=default; t=1480817992; bh=bRpRv0HNTrpv2CG/jz6icTqR8Z7Y4cJ/whsmldmpJrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LYJBQ7dJGG1BpGXQLhNV8dptTnMH/XaO9tVoA2CgQ9cz4lwrTBZSBsXG4kIuoVbK4 J3h6LzLfXlDqc7dDnRQCCiLUT5QNKYk+1duManfsc3/lg8J6C0000y1GoQp2xA3F91 jBwi5fPGxy6Oiwh0Fqc4JmngwAUj8LnbQxjccgVQ=
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 34
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:30 -0500
X-Original-Message-ID <1480817983-32359-7-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:1535560

Show key headers only | View raw


The alignment of the variables in the struct isl29028_chip is not
consistent. This changes all of the variables to use consistent
alignment to improve the code readability.

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

diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index d5b069e..fe8814b 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -67,13 +67,13 @@ enum isl29028_als_ir_mode {
 };
 
 struct isl29028_chip {
-	struct mutex		lock;
-	struct regmap		*regmap;
+	struct mutex			lock;
+	struct regmap			*regmap;
 
-	unsigned int		prox_sampling;
-	bool			enable_prox;
+	unsigned int			prox_sampling;
+	bool				enable_prox;
 
-	int			lux_scale;
+	int				lux_scale;
 	enum isl29028_als_ir_mode	als_ir_mode;
 	bool				suspended;
 };
-- 
2.7.4

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


Thread

[PATCH 06/19] staging: iio: isl29028: made alignment of variables in struct isl29028_chip consistent Brian Masney <masneyb@onstation.org> - 2016-12-04 03:30 +0100

csiph-web