[COMMON] fimc-is2: seperated RTA_VERSION_OFFSET, DDK_VERSION_OFFSET from FIMC_IS_VERS...
authorEunyoung Lee <ey470.lee@samsung.com>
Tue, 26 Jun 2018 04:13:20 +0000 (13:13 +0900)
committerWooyeon Kim <wooy88.kim@samsung.com>
Fri, 6 Jul 2018 01:43:28 +0000 (10:43 +0900)
Change-Id: I19f0e1f2651cc9725f42420226ac99134cc9c9af
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-ischain.c
drivers/media/platform/exynos/fimc-is2/include/fimc-is-binary.h

index 859f18624f7639be529c3d850099e36d16eac9e0..2dbfa0aeb35a4d045d9a0abd56b487565a151fb5 100644 (file)
@@ -879,8 +879,8 @@ void fimc_is_ischain_version(enum fimc_is_bin_type type, const char *load_bin, u
                }
                break;
        case FIMC_IS_BIN_DDK_LIBRARY:
-               if (size > FIMC_IS_VERSION_OFFSET) {
-                       memcpy(ddk_version_str, &load_bin[size - FIMC_IS_VERSION_OFFSET],
+               if (size > DDK_VERSION_OFFSET) {
+                       memcpy(ddk_version_str, &load_bin[size - DDK_VERSION_OFFSET],
                                FIMC_IS_VERSION_BIN_SIZE);
                        ddk_version_str[FIMC_IS_VERSION_BIN_SIZE] = '\0';
                        info("DDK version : %s\n", ddk_version_str);
@@ -889,8 +889,8 @@ void fimc_is_ischain_version(enum fimc_is_bin_type type, const char *load_bin, u
                }
                break;
        case FIMC_IS_BIN_RTA_LIBRARY:
-               if (size > FIMC_IS_VERSION_OFFSET) {
-                       memcpy(rta_version_str, &load_bin[size - FIMC_IS_VERSION_OFFSET],
+               if (size > RTA_VERSION_OFFSET) {
+                       memcpy(rta_version_str, &load_bin[size - RTA_VERSION_OFFSET],
                                FIMC_IS_VERSION_BIN_SIZE);
                        rta_version_str[FIMC_IS_VERSION_BIN_SIZE] = '\0';
                        info("RTA version : %s\n", rta_version_str);
index ab4ff924023c50d8bfd37f744821608f6d2e27f6..d4fed371dfb2d97b4c48cf22371da011dcdc0abd 100644 (file)
 #define FIMC_IS_VERSION_BIN_SIZE               44
 #ifdef USE_BINARY_PADDING_DATA_ADDED
 #define FIMC_IS_SIGNATURE_SIZE                 528
-#define FIMC_IS_VERSION_OFFSET                 (FIMC_IS_VERSION_BIN_SIZE+FIMC_IS_SIGNATURE_SIZE)
+#define DDK_VERSION_OFFSET                     (FIMC_IS_VERSION_BIN_SIZE + FIMC_IS_SIGNATURE_SIZE)
+#define RTA_VERSION_OFFSET                     (FIMC_IS_VERSION_BIN_SIZE)
 #else
-#define FIMC_IS_VERSION_OFFSET                 (FIMC_IS_VERSION_BIN_SIZE)
+#define DDK_VERSION_OFFSET                     (FIMC_IS_VERSION_BIN_SIZE)
+#define RTA_VERSION_OFFSET                     (FIMC_IS_VERSION_BIN_SIZE)
 #endif
 #define FIMC_IS_SETFILE_VER_OFFSET             0x40
 #define FIMC_IS_SETFILE_VER_SIZE               52