[Linux-parport] [PATCH 4/5] parport: move open braces to the same line
Carlos Palminha
CARLOS.PALMINHA at synopsys.com
Mon Jul 17 09:37:01 PDT 2017
based on checkpatch, cleanup the open braces that "should be on the
previous line".
Signed-off-by: Carlos Palminha <palminha at 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
More information about the Linux-parport
mailing list