From: Wooyeon Kim Date: Wed, 20 Feb 2019 04:21:48 +0000 (+0900) Subject: [COMMON] fimc-is2: do not duplicate dw9839 actuator init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8cac7a6a8871f2ea00ebb94ceb98594bd4afbe3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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 f3afbb6eb8b5..8acc9891610a 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 @@ -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);