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

Commit aead69dc authored by Om Parkash's avatar Om Parkash
Browse files

msm: camera: sensor: Use correct addr_type & data_type for probe



Use correct Address type & data type for camera sensor probe
use the type received from sensor driver instead of hardcoding.

CRs-Fixed: 2948896
Change-Id: I3e355d86fca6a49fb96ab782213dc158f0a6ea39
Signed-off-by: default avatarOm Parkash <oparkash@codeaurora.org>
parent 5bdd66fa
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -688,8 +688,9 @@ int cam_sensor_match_id(struct cam_sensor_ctrl_t *s_ctrl)
	rc = camera_io_dev_read(
		&(s_ctrl->io_master_info),
		slave_info->sensor_id_reg_addr,
		&chipid, CAMERA_SENSOR_I2C_TYPE_WORD,
		CAMERA_SENSOR_I2C_TYPE_WORD);
		&chipid,
		s_ctrl->sensor_probe_addr_type,
		s_ctrl->sensor_probe_data_type);

	CAM_DBG(CAM_SENSOR, "read id: 0x%x expected id 0x%x:",
		chipid, slave_info->sensor_id);