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-gm1.c
index 53cd2a5e609447d1d6efa6a9bc5158b77ec2f143..66d494f2c67fdc2d3bbb0b155fcb1704fda09d58 100755 (executable)
@@ -34,6 +34,7 @@ int fimc_is_eeprom_gm1_check_all_crc(struct v4l2_subdev *subdev)
        struct fimc_is_module_enum *module;
        struct fimc_is_eeprom *eeprom = NULL;
        struct fimc_is_device_sensor *sensor = NULL;
+       int i;
 
        FIMC_BUG(!subdev);
 
@@ -61,7 +62,7 @@ int fimc_is_eeprom_gm1_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;
        } else