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

Commit e40956d8 authored by Terence Ho's avatar Terence Ho
Browse files

msm: ais: add query slot to cci node



Add query slot id to cci node to be able to select particular
cci node for debugging.

Change-Id: I55a15649f1ee9bdf02670cd0b5245a35c7cc1f02
Signed-off-by: default avatarTerence Ho <terenceh@codeaurora.org>
parent 01fdc3e9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1758,6 +1758,17 @@ int32_t cam_cci_core_cam_ctrl(struct v4l2_subdev *sd,
	}

	switch (cmd->op_code) {
	case CAM_QUERY_CAP: {
		struct  cam_sensor_query_cap sensor_cap;

		sensor_cap.slot_info = cci_dev->soc_info.index;
		if (copy_to_user(u64_to_user_ptr(cmd->handle),
			&sensor_cap, sizeof(struct  cam_sensor_query_cap))) {
			CAM_ERR(CAM_SENSOR, "Failed Copy to User");
			rc = -EFAULT;
		}
	}
		break;
	case AIS_SENSOR_I2C_POWER_UP: {
		struct ais_sensor_cmd_i2c_pwrup cci_pwrup;