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


Groups > linux.kernel > #1689240

[PATCH 4/5] parport: move open braces to the same line

From Carlos Palminha <CARLOS.PALMINHA@synopsys.com>
Newsgroups linux.kernel
Subject [PATCH 4/5] parport: move open braces to the same line
Date 2017-07-17 18:40 +0200
Message-ID <u4hdU-7rt-23@gated-at.bofh.it> (permalink)
References <u4hdU-7rt-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


based on checkpatch, cleanup the open braces that "should be on the
previous line".

Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
 drivers/parport/daisy.c          | 3 +--
 drivers/parport/parport_gsc.c    | 3 +--
 drivers/parport/parport_sunbpp.c | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/parport/daisy.c b/drivers/parport/daisy.c
index 568d3733ae4e..b19d7f632edb 100644
--- a/drivers/parport/daisy.c
+++ b/drivers/parport/daisy.c
@@ -354,8 +354,7 @@ void parport_daisy_deselect_all(struct parport *port)
 
 int parport_daisy_select(struct parport *port, int daisy, int mode)
 {
-	switch (mode)
-	{
+	switch (mode) {
 		// For these modes we should switch to EPP mode:
 		case IEEE1284_MODE_EPP:
 		case IEEE1284_MODE_EPPSL:
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index 626df53d6d9d..9c2493fa29ff 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -95,8 +95,7 @@ void parport_gsc_restore_state(struct parport *p, struct parport_state *s)
 	parport_writeb(s->u.pc.ctr, CONTROL(p));
 }
 
-struct parport_operations parport_gsc_ops = 
-{
+struct parport_operations parport_gsc_ops = {
 	.write_data	= parport_gsc_write_data,
 	.read_data	= parport_gsc_read_data,
 
diff --git a/drivers/parport/parport_sunbpp.c b/drivers/parport/parport_sunbpp.c
index c87bf4ac2006..6037008579f1 100644
--- a/drivers/parport/parport_sunbpp.c
+++ b/drivers/parport/parport_sunbpp.c
@@ -228,8 +228,7 @@ static void parport_sunbpp_restore_state(struct parport *p, struct parport_state
 	parport_sunbpp_write_control(p, s->u.pc.ctr);
 }
 
-static struct parport_operations parport_sunbpp_ops = 
-{
+static struct parport_operations parport_sunbpp_ops = {
 	.write_data	= parport_sunbpp_write_data,
 	.read_data	= parport_sunbpp_read_data,
 
-- 
2.11.0

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


Thread

[PATCH 4/5] parport: move open braces to the same line Carlos Palminha <CARLOS.PALMINHA@synopsys.com> - 2017-07-17 18:40 +0200

csiph-web