From 90bb3c9ca7107b92e1fd2ca2e01f1a205a5cc9a6 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 25 Apr 2020 23:52:51 +0000 Subject: [PATCH] fimc-is2: fix variable declarations Change-Id: I99a5c03664346d74fc4fe93278121c52cbe3289c --- .../module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c | 3 ++- .../module_framework/eeprom/fimc-is-sensor-eeprom-12a10ff.c | 3 ++- .../module_framework/eeprom/fimc-is-sensor-eeprom-16885c.c | 3 ++- .../sensor/module_framework/eeprom/fimc-is-sensor-eeprom-5e9.c | 3 ++- .../sensor/module_framework/eeprom/fimc-is-sensor-eeprom-gm1.c | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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 -- 2.20.1