fimc-is2: fix variable declarations
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / drivers / media / platform / exynos / fimc-is2 / sensor / module_framework / eeprom / fimc-is-sensor-eeprom-12a10ff.c
index 874a1ab506718f3c79542aa7768197731b187e2a..2017a92868a51d6c68abaa84f8849d846eec0b07 100644 (file)
@@ -35,6 +35,7 @@ int fimc_is_eeprom_12a10ff_check_all_crc(struct v4l2_subdev *subdev)
        struct fimc_is_eeprom *eeprom = NULL;
        struct fimc_is_device_sensor *sensor = NULL;
        int ret_sum = 0;
+       int i;
 
        FIMC_BUG(!subdev);
 
@@ -62,7 +63,7 @@ int fimc_is_eeprom_12a10ff_check_all_crc(struct v4l2_subdev *subdev)
                                EEPROM_ADD_CRC_FST, EEPROM_DATA_SIZE, 0xff);
 
                /*Set all cal_status to ERROR if Address cal data invalid*/
-               for (int i = 0; i < CAMERA_CRC_INDEX_MAX; i++)
+               for (i = 0; i < CAMERA_CRC_INDEX_MAX; i++)
                    sensor->cal_status[i] = CRC_ERROR;
 
                return ret;