/* 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)
{
	uint16_t pin;
	uint8_t port;
	gpio_get_portpin(desc, &pin, &port);
	return adi_gpio_InputEnable(port, pin, true);
}