Skip to contentSkip to conversation

staging: typec: tcpci: mark expected switch fall-through in tcpci_to_typec_cc

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 10, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: typec: tcpci: mark expected switch fall-through in tcpci_to_typec_cc

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

---
 drivers/staging/typec/tcpci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/typec/tcpci.c +1 -0
index 4636804..b6abaf7 100644
@@ -139,6 +139,7 @@ static enum typec_cc_status tcpci_to_typec_cc(unsigned int cc, bool sink)
 	case 0x3:
 		if (sink)
 			return TYPEC_CC_RP_3_0;
+		/* fall through */
 	case 0x0:
 	default:
 		return TYPEC_CC_OPEN;
Signature · 1 line
2.7.4