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 <[email protected]>
Reviewed-on: https://gerrit.mot.com/1898786
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <[email protected]>
Reviewed-by: Long Cheng <[email protected]>
Reviewed-by: Zhuoran Xu <[email protected]>
Reviewed-by: Xu Ji <[email protected]>
Reviewed-by: Shuo Wang <[email protected]>
Reviewed-by: Zhenxin Xi <[email protected]>
Submit-Approved: Jira Key
Reviewed-by: Zhichao Chen <[email protected]>
This commit is contained in:
wangdw10 2021-03-11 20:53:07 +08:00 • committed by zhaoji1
commit 09fc695550

View file

@ -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);