Skip to contentSkip to conversation

usb: typec: tps6598x: mark expected switch fall-through

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Oct 27, 2017 – Oct 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: typec: tps6598x: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/usb/typec/tps6598x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/tps6598x.c +1 -0
index 8893f79..b728d9e 100644
@@ -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;
Signature · 1 line
2.7.4