From 850025460c565db965d864e5b2374cae0e42e91e Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Wed, 4 Jul 2018 13:59:17 +0900 Subject: [PATCH] [COMMON] fimc-is2: Added new function to keep compatibility - set_scaler_coef Added scaler_coef related function for mcsc v4.0 and v4.10. PR JIRA ID: CPR-33 Change-Id: Id5b2408065fe25bb4fbc2aa03d15ef5d8b76187c Signed-off-by: Sunmi Lee --- .../fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v410.c | 9 ++++----- .../fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v4_0.c | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v410.c b/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v410.c index 92de049428c1..0a8da6a13d57 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v410.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v410.c @@ -849,10 +849,8 @@ void fimc_is_scaler_set_poly_scaler_v_coef(void __iomem *base_addr, u32 output_i } } -void fimc_is_scaler_set_poly_scaler_coef(void __iomem *base_addr, - u32 output_id, - u32 hratio, - u32 vratio, +void fimc_is_scaler_set_poly_scaler_coef(void __iomem *base_addr, u32 output_id, + u32 hratio, u32 vratio, struct scaler_coef_cfg *sc_coef, enum exynos_sensor_position sensor_position) { u32 h_coef = 0; @@ -1142,7 +1140,8 @@ void fimc_is_scaler_set_post_scaler_h_v_coef(void __iomem *base_addr, u32 output } } -void fimc_is_scaler_set_post_scaler_coef(void __iomem *base_addr, u32 output_id, u32 hratio, u32 vratio) +void fimc_is_scaler_set_post_scaler_coef(void __iomem *base_addr, u32 output_id, + u32 hratio, u32 vratio, struct scaler_coef_cfg *sc_coef) { u32 h_coef = 0; u32 v_coef = 0; diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v4_0.c b/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v4_0.c index 8e5c6589e0c9..eb841263e60a 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v4_0.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/api/fimc-is-hw-api-mcscaler-v4_0.c @@ -1375,10 +1375,8 @@ void fimc_is_scaler_set_poly_scaler_v_coef(void __iomem *base_addr, u32 output_i } } -void fimc_is_scaler_set_poly_scaler_coef(void __iomem *base_addr, - u32 output_id, - u32 hratio, - u32 vratio, +void fimc_is_scaler_set_poly_scaler_coef(void __iomem *base_addr, u32 output_id, + u32 hratio, u32 vratio, struct scaler_coef_cfg *sc_coef, enum exynos_sensor_position sensor_position) { u32 h_coef = 0; @@ -1738,7 +1736,8 @@ void fimc_is_scaler_set_post_scaler_h_v_coef(void __iomem *base_addr, u32 output } } -void fimc_is_scaler_set_post_scaler_coef(void __iomem *base_addr, u32 output_id, u32 hratio, u32 vratio) +void fimc_is_scaler_set_post_scaler_coef(void __iomem *base_addr, u32 output_id, + u32 hratio, u32 vratio, struct scaler_coef_cfg *sc_coef) { u32 h_coef = 0; u32 v_coef = 0; -- 2.20.1