/* NOTE: gpio_flags_t b are defined in the dt-binding gpio header. b are defined in the driver gpio header. Hardware only supports push-pull or open-drain.  */
static int gpio_xec_validate_flags(gpio_flags_t flags)
/* NOTE: gpio_flags_t b are defined in the dt-binding gpio header. b are defined in the driver gpio header. Hardware only supports push-pull or open-drain.  */
static int gpio_xec_validate_flags(gpio_flags_t flags)
{
	if ((flags & (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN))
	    == (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE)) {
		return -ENOTSUP;
	}
	if ((flags & (GPIO_INPUT | GPIO_OUTPUT))
	    == (GPIO_INPUT | GPIO_OUTPUT)) {
		return -ENOTSUP;
	}
	if ((flags & GPIO_OUTPUT_INIT_LOW) && (flags & GPIO_OUTPUT_INIT_HIGH)) {
		return -EINVAL;
	}
	return 0;
}