[COMMON] fimc-si2:[VENDOR][DEF] add rear3 sensor(code sync)
authorJeongtae Park <jtp.park@samsung.com>
Fri, 27 Jul 2018 03:03:43 +0000 (12:03 +0900)
committerhskang <hs1218.kang@samsung.com>
Tue, 14 Aug 2018 01:18:27 +0000 (21:18 -0400)
 PR JIRA ID: CPR-153

Change-Id: Ib5f94ce948dd8028820a38dd5aefe8890cf4e86a
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/vendor/default/fimc-is-vender-specific.h
drivers/media/platform/exynos/fimc-is2/vendor/default/fimc-is-vender.c

index f77d35312e57342d40dbc2f9da704628559b54d8..2fd074d04b3f32bb78407ce5ed0be4710388da0f 100644 (file)
@@ -26,6 +26,7 @@ struct fimc_is_vender_specific {
        u32                     secure_sensor_id;
 #endif
        u32                     front_second_sensor_id;
+       u32                     rear_third_sensor_id;
        u32                     ois_sensor_index;
        u32                     aperture_sensor_index;
        bool                    zoom_running;
index 10dfbe4189bfcdb58a4a58b49009f09fd7e3687f..7469049e60b3381df60707447fff70c30d2f658c 100644 (file)
@@ -24,6 +24,7 @@ static u32  rear_second_sensor_id;
 static u32  secure_sensor_id;
 #endif
 static u32  front_second_sensor_id;
+static u32  rear_third_sensor_id;
 static u32  ois_sensor_index;
 static u32  aperture_sensor_index;
 
@@ -63,6 +64,7 @@ int fimc_is_vender_probe(struct fimc_is_vender *vender)
        priv->secure_sensor_id = secure_sensor_id;
 #endif
        priv->front_second_sensor_id = front_second_sensor_id;
+       priv->rear_third_sensor_id = rear_third_sensor_id;
        priv->ois_sensor_index = ois_sensor_index;
        priv->aperture_sensor_index = aperture_sensor_index;
 
@@ -96,6 +98,10 @@ int fimc_is_vender_dt(struct device_node *np)
        if (ret)
                probe_err("front_second_sensor_id read is fail(%d)", ret);
 
+       ret = of_property_read_u32(np, "rear_third_sensor_id", &rear_third_sensor_id);
+       if (ret)
+               probe_err("rear_third_sensor_id read is fail(%d)", ret);
+
        ret = of_property_read_u32(np, "ois_sensor_index", &ois_sensor_index);
        if (ret)
                probe_err("ois_sensor_index read is fail(%d)", ret);