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

Commit 567a4459 authored by Pengfei Liu's avatar Pengfei Liu Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Initialize parameters of eeprom



Initialize parameters to avoid random value break the flow.

Change-Id: Ie3530c01531505b84a1b13820eb699adba07fb43
Signed-off-by: default avatarPengfei Liu <pengfeiliu@codeaurora.org>
parent c04b5830
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@ static int cam_eeprom_read_memory(struct cam_eeprom_ctrl_t *e_ctrl,
{
	int                                rc = 0;
	int                                j;
	struct cam_sensor_i2c_reg_setting  i2c_reg_settings;
	struct cam_sensor_i2c_reg_setting  i2c_reg_settings = {
						NULL, 0, 0, 0, 0};
	struct cam_sensor_i2c_reg_array    i2c_reg_array;
	struct cam_eeprom_memory_map_t    *emap = block->map;
	struct cam_eeprom_soc_private     *eb_info;