From f23f4cbb2d6610fd8e4e43675c1f8acf475ed940 Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Thu, 24 Feb 2022 11:23:01 +0000 Subject: [PATCH] Samaung never changes pt2 --- .../platform/exynos/fimc-is2/vendor/mcd/fimc-is-sec-define.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/vendor/mcd/fimc-is-sec-define.c b/drivers/media/platform/exynos/fimc-is2/vendor/mcd/fimc-is-sec-define.c index bd6089d6a8e0..20f09d7cde5e 100644 --- a/drivers/media/platform/exynos/fimc-is2/vendor/mcd/fimc-is-sec-define.c +++ b/drivers/media/platform/exynos/fimc-is2/vendor/mcd/fimc-is-sec-define.c @@ -2981,20 +2981,21 @@ int fimc_is_sec_sensor_find_front_tof_uid(struct fimc_is_core *core, char *buf) #ifdef CAMERA_FRONT_TOF struct fimc_is_vender_specific *specific = core->vender.private_data; struct fimc_is_rom_info *finfo = NULL; + int i = 0; fimc_is_sec_get_sysfs_finfo(&finfo, FRONT_TOF_ROM_ID); if (finfo->cal_map_ver[3] >= FRONT_TOF_CHECK_MAP_VERSION) { char uid_list[256] = {0, }; char uid_temp[10] = {0, }; - for (int i = 0; i < finfo->rom_tof_cal_uid_addr_len; i++) { + for (i; i < finfo->rom_tof_cal_uid_addr_len; i++) { specific->front_tof_uid[i] = *((int32_t*)&buf[finfo->rom_tof_cal_uid_addr[i]]); sprintf(uid_temp, "0x%x ", specific->front_tof_uid[i]); strcat(uid_list, uid_temp); } info("front_tof_uid: %s\n", uid_list); } else { - for (int i = 0; i < finfo->rom_tof_cal_uid_addr_len; i++) { + for (i; i < finfo->rom_tof_cal_uid_addr_len; i++) { specific->front_tof_uid[i] = FRONT_TOF_DEFAULT_UID; } info("front_tof_uid: 0x%x, use default 0x%x", *((int32_t*)&buf[finfo->rom_tof_cal_uid_addr[0]]),