[9610] fimc-is2: remove logic that load initial position of actuator
authorDohyun Kim <dh5.kim@samsung.com>
Fri, 21 Jun 2019 10:16:08 +0000 (19:16 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 13:00:26 +0000 (22:00 +0900)
Change-Id: Ic426459443f7de03ea77c9a17cc7febaab0e9a0c
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-lc898217.c

index 2a4ce1326b8f5364e4bd3800988bc3fc7bcc44b4..2b3bf51299ab4fd31564efa3322319c0a7d3d19a 100755 (executable)
@@ -39,7 +39,6 @@
 #define REG_ADC_LOW            0x0B /* actual POS[7:4] */
 
 
-extern struct fimc_is_lib_support gPtr_lib_support;
 extern struct fimc_is_sysfs_actuator sysfs_actuator;
 
 static int sensor_lc898217_write_position(struct i2c_client *client, u32 val)
@@ -84,8 +83,6 @@ int sensor_lc898217_actuator_init(struct v4l2_subdev *subdev, u32 val)
        do_gettimeofday(&st);
 #endif
 
-       long cal_addr;
-       u32 cal_data;
 
        int first_position = DEF_LC898217_FIRST_POSITION;
 
@@ -126,19 +123,6 @@ int sensor_lc898217_actuator_init(struct v4l2_subdev *subdev, u32 val)
                goto p_err_mutex;
        }
 #endif
-
-       /* EEPROM AF calData address */
-       if (gPtr_lib_support.binary_load_flg) {
-               /* get pan_focus */
-               cal_addr = gPtr_lib_support.minfo->kvaddr_cal[SENSOR_POSITION_REAR] + EEPROM_OEM_BASE;
-               memcpy((void *)&cal_data, (void *)cal_addr, sizeof(cal_data));
-
-               if (cal_data > 0)
-                       first_position = cal_data;
-       } else {
-               warn("SDK library is not loaded");
-       }
-
        ret = sensor_lc898217_write_position(client, first_position);
        if (ret < 0)
                goto p_err_mutex;