[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:56 +0000 (20:23 +0300)
 - 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 f3afbb6eb8b56894c58e5f98a89dcd8d60af71c9..8acc9891610a526c7374503877811510953b348a 100644 (file)
@@ -492,6 +492,8 @@ int sensor_dw9839_actuator_get_actual_position(struct v4l2_subdev *subdev, u32 *
        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);