summaryrefslogtreecommitdiff
path: root/drivers/usb/typec
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-27 16:01:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-01 16:51:09 +0100
commit9c4c41bb4fd5d1365dfc94bf59400c619c23dc49 (patch)
treeeef4d13f4ac53c0937da4c854976596faf3ce473 /drivers/usb/typec
parentb6565a07ca67f9b94fdc21ea1bc958236fcd7a71 (diff)
usb: typec: tps6598x: mark expected switch fall-through
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>
Diffstat (limited to 'drivers/usb/typec')
-rw-r--r--drivers/usb/typec/tps6598x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c
index 8893f7937560..b728d9e36ab0 100644
--- a/drivers/usb/typec/tps6598x.c
+++ b/drivers/usb/typec/tps6598x.c
@@ -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;