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

Commit 6c1fafe3 authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: eeprom: Increase memory map count



For write operation while read memory memptr should not need to increase as
it leads to crash. This change removes that increase opertion. Also,
increasing map count to support more data reading for eeprom.

Change-Id: Ie71deb225c2513e7c18229d174a9a0e129fdd1f7
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent 54b3cc43
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -70,7 +70,6 @@ static int cam_eeprom_read_memory(struct cam_eeprom_ctrl_t *e_ctrl,
					rc);
				return rc;
			}
			memptr = block->mapdata + emap[j].mem.valid_size;
		}

		if (emap[j].pageen.valid_size) {
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
#define PROPERTY_MAXSIZE 32

#define MSM_EEPROM_MEMORY_MAP_MAX_SIZE         80
#define MSM_EEPROM_MAX_MEM_MAP_CNT             8
#define MSM_EEPROM_MAX_MEM_MAP_CNT             100
#define MSM_EEPROM_MEM_MAP_PROPERTIES_CNT      8

enum cam_eeprom_state {