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

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

msm: camera: Initial parameters of eeprom



Initial parameters to avoid random value break the flow.

Change-Id: Icd0b1d87b49849d5d6ba12859be52a87f760882d
Signed-off-by: default avatarPengfei Liu <pengfeiliu@codeaurora.org>
parent e4cb2772
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -31,10 +31,10 @@ 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_array    i2c_reg_array;
	struct cam_sensor_i2c_reg_setting  i2c_reg_settings = {0};
	struct cam_sensor_i2c_reg_array    i2c_reg_array = {0};
	struct cam_eeprom_memory_map_t    *emap = block->map;
	struct cam_eeprom_soc_private     *eb_info;
	struct cam_eeprom_soc_private     *eb_info = NULL;
	uint8_t                           *memptr = block->mapdata;

	if (!e_ctrl) {