From ca8829ac1335ac536e38646675d22e2958f8fc54 Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Wed, 20 Feb 2019 13:21:48 +0900 Subject: [PATCH] [COMMON] fimc-is2: do not duplicate dw9839 actuator init - 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 --- .../sensor/module_framework/actuator/fimc-is-actuator-dw9839.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c index ba7ec3a689e7..735e17018b44 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c @@ -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); -- 2.20.1