/* Poll-in implementation for byte mode config, read byte from URBUF if available.  */
static int uart_npcx_poll_in(const struct device *dev, unsigned char *c)
/* Poll-in implementation for byte mode config, read byte from URBUF if available.  */
static int uart_npcx_poll_in(const struct device *dev, unsigned char *c)
{
	const struct uart_npcx_config *const config = dev->config;
	struct uart_reg *const inst = config->inst;
	if (!IS_BIT_SET(inst->UICTRL, NPCX_UICTRL_RBF))
		return -1;
	*c = inst->URBUF;
	return 0;
}