From 09fc6955503e5a9d9d71759e5b4f08e170300686 Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Thu, 11 Mar 2021 20:53:07 +0800 Subject: [PATCH] msm: ois: support new OIS i2c settings Add new fields to OIS data structures, support to apply ois preprog data, precoeff data and postcalibration data Change-Id: Ic8546882e053c10981698bc5ef5182571e6afc0b Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1898786 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Long Cheng Reviewed-by: Zhuoran Xu Reviewed-by: Xu Ji Reviewed-by: Shuo Wang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key Reviewed-by: Zhichao Chen --- drivers/cam_sensor_module/cam_ois/cam_ois_dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cam_sensor_module/cam_ois/cam_ois_dev.c b/drivers/cam_sensor_module/cam_ois/cam_ois_dev.c index a7616d4d19b1..aa771b3bd14d 100644 --- a/drivers/cam_sensor_module/cam_ois/cam_ois_dev.c +++ b/drivers/cam_sensor_module/cam_ois/cam_ois_dev.c @@ -306,7 +306,10 @@ static int cam_ois_component_bind(struct device *dev, soc_private->power_info.dev = &pdev->dev; INIT_LIST_HEAD(&(o_ctrl->i2c_init_data.list_head)); + INIT_LIST_HEAD(&(o_ctrl->i2c_preprog_data.list_head)); + INIT_LIST_HEAD(&(o_ctrl->i2c_precoeff_data.list_head)); INIT_LIST_HEAD(&(o_ctrl->i2c_calib_data.list_head)); + INIT_LIST_HEAD(&(o_ctrl->i2c_postcalib_data.list_head)); INIT_LIST_HEAD(&(o_ctrl->i2c_mode_data.list_head)); mutex_init(&(o_ctrl->ois_mutex)); rc = cam_ois_driver_soc_init(o_ctrl);