usb: typec: tps6598x: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 27 Oct 2017 21:01:13 +0000 (16:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 15:51:09 +0000 (16:51 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tps6598x.c

index 8893f7937560ef6cd1d57164f18b685c9140e310..b728d9e36ab0cd9887b037f3a20a3fc60e4ddb8e 100644 (file)
@@ -403,6 +403,7 @@ static int tps6598x_probe(struct i2c_client *client)
        case TPS_PORTINFO_DRP_UFP_DRD:
        case TPS_PORTINFO_DRP_DFP_DRD:
                tps->typec_cap.dr_set = tps6598x_dr_set;
+               /* fall through */
        case TPS_PORTINFO_DRP_UFP:
        case TPS_PORTINFO_DRP_DFP:
                tps->typec_cap.pr_set = tps6598x_pr_set;