From: Stricted Date: Sat, 25 Apr 2020 23:52:51 +0000 (+0000) Subject: fimc-is2: fix variable declarations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90bb3c9ca7107b92e1fd2ca2e01f1a205a5cc9a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fimc-is2: fix variable declarations Change-Id: I99a5c03664346d74fc4fe93278121c52cbe3289c --- diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c index dd579c02cee0..5ea0600b0d26 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c @@ -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 diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c index 874a1ab50671..2017a92868a5 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c @@ -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; diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c index 1e7621fd0a07..40cae7c65d94 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c @@ -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; diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c index 5114d35e48f7..1de1010b3df1 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c @@ -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; diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c index 53cd2a5e6094..66d494f2c67f 100755 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c @@ -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