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

Commit 3aac10c0 authored by Jigarkumar Zala's avatar Jigarkumar Zala
Browse files

msm: camera: sensor: Update the flash init structure



Currently there is mismatch of the cmd type byte position for the
flash init structure, which casue the cmd type parsing failure
for early PCR. This change move to cmd type to sixth byte to
support the unificaiton with other flash uapi structures. Also,
update respective header change with respect to uapi change.

CRs-Fixed: 2432102
Change-Id: Ic4899b483b35013c5ad77a8894eb3bb4831de811
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent 70c48672
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ struct cam_flash_intf_params {
struct cam_flash_common_attr {
	bool      is_settings_valid;
	uint64_t  request_id;
	uint16_t  count;
	uint32_t  count;
	uint8_t   cmd_type;
};

@@ -97,7 +97,7 @@ struct cam_flash_common_attr {
 */
struct cam_flash_init_packet {
	struct cam_flash_common_attr  cmn_attr;
	uint8_t                       flash_type;
	uint32_t                      flash_type;
};

/**
+3 −2
Original line number Diff line number Diff line
@@ -401,9 +401,10 @@ struct cam_sensor_streamon_dev {
 * @cmd_type    :    command buffer type
 */
struct cam_flash_init {
	uint8_t     flash_type;
	uint16_t    reserved;
	uint32_t    flash_type;
	uint8_t     reserved;
	uint8_t     cmd_type;
	uint16_t    reserved1;
} __attribute__((packed));

/**