/* Enable the input direction of the specified GPIO.  */
int32_t gpio_direction_input(struct gpio_desc *desc)
/* Enable the input direction of the specified GPIO.  */
int32_t gpio_direction_input(struct gpio_desc *desc)
{
	if (!desc || !nb_gpio)
		return FAILURE;
	if (ADI_GPIO_SUCCESS != adi_gpio_InputEnable(PORT(desc->number),
			PIN(desc->number), true))
		return FAILURE;
	return SUCCESS;
}