if (ret)
return ret;
- if (flags == GPIOF_INPUT)
+ if (flags == GPIOFLAG_INPUT)
gpio_direction_input(gpio);
- else if (flags == GPIOF_OUTPUT_INIT_LOW)
+ else if (flags == GPIOFLAG_OUTPUT_INIT_LOW)
gpio_direction_output(gpio, 0);
- else if (flags == GPIOF_OUTPUT_INIT_HIGH)
+ else if (flags == GPIOFLAG_OUTPUT_INIT_HIGH)
gpio_direction_output(gpio, 1);
return ret;