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

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

Revert "msm: camera: Modify size field in icp handles"



This reverts commit 15abc70d.

Change-Id: Idcf6523fe74497da1862281f08707f586ee58e6c
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent bf74ef47
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -652,7 +652,9 @@ static int cam_icp_mgr_abort_handle(
		return -ENOMEM;

	abort_cmd.size =
		sizeof(struct hfi_cmd_ipebps_async);
		sizeof(struct hfi_cmd_ipebps_async) +
		sizeof(struct hfi_cmd_abort_destroy) -
		sizeof(abort_cmd.payload.direct);
	abort_cmd.pkt_type = HFI_CMD_IPEBPS_ASYNC_COMMAND_DIRECT;
	if (ctx_data->icp_dev_acquire_info->dev_type == CAM_ICP_RES_TYPE_BPS)
		abort_cmd.opcode = HFI_IPEBPS_CMD_OPCODE_BPS_ABORT;
@@ -704,7 +706,9 @@ static int cam_icp_mgr_destroy_handle(
		return -ENOMEM;

	destroy_cmd.size =
		sizeof(struct hfi_cmd_ipebps_async);
		sizeof(struct hfi_cmd_ipebps_async) +
		sizeof(struct ipe_bps_destroy) -
		sizeof(destroy_cmd.payload.direct);
	destroy_cmd.pkt_type = HFI_CMD_IPEBPS_ASYNC_COMMAND_DIRECT;
	if (ctx_data->icp_dev_acquire_info->dev_type == CAM_ICP_RES_TYPE_BPS)
		destroy_cmd.opcode = HFI_IPEBPS_CMD_OPCODE_BPS_DESTROY;