[COMMON] fimc-is2: modified pinctrl delay function to udelay
authorWooyeon Kim <wooy88.kim@samsung.com>
Fri, 12 Apr 2019 12:03:42 +0000 (21:03 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 12:59:59 +0000 (21:59 +0900)
 - for activate by busy waiting

Change-Id: Ib4958629646eb38bef35bd9752c07b2fc45343a4
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/ischain/setup-fimc-is-module.c

index 7da220159dbebb7e9ef47e211b6c31bfd8b7757c..d57f8eb2a869b57a581fb18f14a201294e3fd2a3 100644 (file)
@@ -81,7 +81,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module,
 
        switch (act) {
        case PIN_NONE:
-               usleep_range(delay, delay);
+               udelay(delay);
                break;
        case PIN_OUTPUT:
                if (gpio_is_valid(pin)) {
@@ -89,7 +89,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module,
                                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;
@@ -119,7 +119,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module,
                                pr_err("pinctrl_select_state(%s) is fail(%d)\n", name, ret);
                                return ret;
                        }
-                       usleep_range(delay, delay);
+                       udelay(delay);
                }
                break;
        case PIN_REGULATOR:
@@ -165,7 +165,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module,
                                }
                        }
 
-                       usleep_range(delay, delay);
+                       udelay(delay);
                        regulator_put(regulator);
                }
                break;