switch (act) {
case PIN_NONE:
- usleep_range(delay, delay);
+ udelay(delay);
break;
case PIN_OUTPUT:
if (gpio_is_valid(pin)) {
gpio_request_one(pin, GPIOF_OUT_INIT_HIGH, "CAM_GPIO_OUTPUT_HIGH");
else
gpio_request_one(pin, GPIOF_OUT_INIT_LOW, "CAM_GPIO_OUTPUT_LOW");
- usleep_range(delay, delay);
+ udelay(delay);
gpio_free(pin);
}
break;
pr_err("pinctrl_select_state(%s) is fail(%d)\n", name, ret);
return ret;
}
- usleep_range(delay, delay);
+ udelay(delay);
}
break;
case PIN_REGULATOR:
}
}
- usleep_range(delay, delay);
+ udelay(delay);
regulator_put(regulator);
}
break;