[COMMON] fimc-is2: do not duplicate dw9839 actuator init
authorWooyeon Kim <wooy88.kim@samsung.com>
Wed, 20 Feb 2019 04:21:48 +0000 (13:21 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:21:11 +0000 (11:21 +0800)
 - Due to not used a AF cal at actuator dw9839,
   skip second actuator init operation.

 PR JIRA ID: CPR-719

Change-Id: I4c7bedcfeb272266a9d9e85dbd35a5d1422f6504
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c

index ba7ec3a689e7cb0446498fb85b508fbc4a4fb485..735e17018b446ae2c0f8648f563e26f410880997 100644 (file)
@@ -304,6 +304,8 @@ int sensor_dw9839_actuator_init(struct v4l2_subdev *subdev, u32 val)
        pr_info("[%s] time %lu us", __func__, (end.tv_sec - st.tv_sec) * 1000000 + (end.tv_usec - st.tv_usec));
 #endif
 
+       /* dw9839 actuator do not use af cal */
+       actuator->actuator_data.actuator_init = false;
 p_err:
        I2C_MUTEX_UNLOCK(actuator->i2c_lock);