summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-07-12 17:29:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-15 08:13:00 -0400
commit34bcfdac8c92cc7971254ba5856afd12047c50b2 (patch)
tree2a4e3fe2cfc29f1a8f52184191720bb6176b0abf /drivers/parport
parentfaa1a47388b33623e4d504c23569188907b039a0 (diff)
parport: ieee1284: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/ieee1284.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/parport/ieee1284.c b/drivers/parport/ieee1284.c
index 2d1a5c737c6e..f12b9da69255 100644
--- a/drivers/parport/ieee1284.c
+++ b/drivers/parport/ieee1284.c
@@ -267,7 +267,7 @@ static void parport_ieee1284_terminate (struct parport *port)
267 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; 267 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
268 } 268 }
269 269
270 /* fall-though.. */ 270 /* fall through */
271 271
272 default: 272 default:
273 /* Terminate from all other modes. */ 273 /* Terminate from all other modes. */
@@ -615,6 +615,7 @@ ssize_t parport_write (struct parport *port, const void *buffer, size_t len)
615 case IEEE1284_MODE_NIBBLE: 615 case IEEE1284_MODE_NIBBLE:
616 case IEEE1284_MODE_BYTE: 616 case IEEE1284_MODE_BYTE:
617 parport_negotiate (port, IEEE1284_MODE_COMPAT); 617 parport_negotiate (port, IEEE1284_MODE_COMPAT);
618 /* fall through */
618 case IEEE1284_MODE_COMPAT: 619 case IEEE1284_MODE_COMPAT:
619 DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n", 620 DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n",
620 port->name); 621 port->name);