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

Commit e589103a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: add query slot to cci node"

parents defa0305 e40956d8
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;