/* Check if Tx or Rx IRQ is pending.  */
static int cdc_acm_irq_is_pending(const struct device *dev)
/* Check if Tx or Rx IRQ is pending.  */
static int cdc_acm_irq_is_pending(const struct device *dev)
{
	struct cdc_acm_dev_data_t * const dev_data = dev->data;
	if (dev_data->tx_ready && dev_data->tx_irq_ena) {
		return 1;
	} else if (dev_data->rx_ready && dev_data->rx_irq_ena) {
		return 1;
	} else {
		return 0;
	}
}