Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f05cffdc authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: ois: Populate delay in I2C register settings



As part of FW download populate the delay field as part of
I2C register settings.

Change-Id: I79680755156cc748de7201fbd46f5788257cd0ec
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 8ab8f8f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -333,6 +333,7 @@ static int cam_ois_fw_download(struct cam_ois_ctrl_t *o_ctrl)
	i2c_reg_setting.addr_type = CAMERA_SENSOR_I2C_TYPE_BYTE;
	i2c_reg_setting.data_type = CAMERA_SENSOR_I2C_TYPE_BYTE;
	i2c_reg_setting.size = total_bytes;
	i2c_reg_setting.delay = 0;
	fw_size = PAGE_ALIGN(sizeof(struct cam_sensor_i2c_reg_array) *
		total_bytes) >> PAGE_SHIFT;
	page = cma_alloc(dev_get_cma_area((o_ctrl->soc_info.dev)),
@@ -377,6 +378,7 @@ static int cam_ois_fw_download(struct cam_ois_ctrl_t *o_ctrl)
	i2c_reg_setting.addr_type = CAMERA_SENSOR_I2C_TYPE_BYTE;
	i2c_reg_setting.data_type = CAMERA_SENSOR_I2C_TYPE_BYTE;
	i2c_reg_setting.size = total_bytes;
	i2c_reg_setting.delay = 0;
	fw_size = PAGE_ALIGN(sizeof(struct cam_sensor_i2c_reg_array) *
		total_bytes) >> PAGE_SHIFT;
	page = cma_alloc(dev_get_cma_area((o_ctrl->soc_info.dev)),