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: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:
Jigarkumar Zala
2019-09-20 16:58:11 -07:00
parent 70c486722f
commit 3aac10c09f
2 changed files with 5 additions and 4 deletions

View File

@@ -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));
/**