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

Commit c94ac784 authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Store slave address information from userspace



Store slave address information for image sensor from userspace
for the debug purpose.

Change-Id: Ie0d42472cede701557da2c67297ed14ee6a692f2
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent 8d16e27a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -296,6 +296,8 @@ int32_t cam_sensor_update_i2c_info(struct cam_cmd_i2c_info *i2c_info,
			i2c_info->i2c_freq_mode);
	}

	s_ctrl->sensordata->slave_info.sensor_slave_addr =
		i2c_info->slave_addr;
	return rc;
}

@@ -628,7 +630,7 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
		}

		CAM_INFO(CAM_SENSOR,
			"Probe Succees, slot:%d slave_addr: 0x%x, slave_id: %d",
			"Probe Succees,slot:%d,slave_addr:0x%x,sensor_id:0x%x",
			s_ctrl->soc_info.index,
			s_ctrl->sensordata->slave_info.sensor_slave_addr,
			s_ctrl->sensordata->slave_info.sensor_id);