/* Get the CC enable mask. The mask indicates which CC line is enabled.  */
static uint32_t ucpd_get_cc_enable_mask(const struct device *dev)
/* Get the CC enable mask. The mask indicates which CC line is enabled.  */
static uint32_t ucpd_get_cc_enable_mask(const struct device *dev)
{
	struct tcpc_data *data = dev->data;
	const struct tcpc_config *const config = dev->config;
	uint32_t mask = UCPD_CR_CCENABLE_Msk;
	if (data->ucpd_vconn_enable) {
		uint32_t cr = LL_UCPD_ReadReg(config->ucpd_port, CR);
		int pol = (cr & UCPD_CR_PHYCCSEL);
		mask &= ~BIT(UCPD_CR_CCENABLE_Pos + !pol);
	}
	return mask;
}