fimc-is2: fix variable declarations
authorStricted <info@stricted.net>
Sat, 25 Apr 2020 23:52:51 +0000 (23:52 +0000)
committerStricted <info@stricted.net>
Mon, 27 Apr 2020 19:11:38 +0000 (19:11 +0000)
Change-Id: I99a5c03664346d74fc4fe93278121c52cbe3289c

drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c

index dd579c02cee0ec9cdf02ff6a4000d99535c052df..5ea0600b0d26ac6c39059b50949b1d6c8e77eb5d 100644 (file)
@@ -35,6 +35,7 @@ int fimc_is_eeprom_12a10_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_12a10_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
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;
index 1e7621fd0a07c0bfb06453787e5c0791d6ea0498..40cae7c65d945aa52a70b59f8b4e37d340f26e79 100644 (file)
@@ -35,6 +35,7 @@ int fimc_is_eeprom_16885c_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_16885c_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;
index 5114d35e48f78889bd11b7179e4da76a0787653d..1de1010b3df1070f1a527048d1403112fdb20d5a 100644 (file)
@@ -34,6 +34,7 @@ int fimc_is_eeprom_5e9_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_5e9_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;
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