camsys_drv : v0.9.0
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / nt99240_2way.c
index fb9a2d2434638222f2046a4e02f6d6c555821c03..6741bc9db584b45edbe82fc3612d480cdebaa0cd 100755 (executable)
@@ -828,8 +828,8 @@ static struct soc_camera_ops sensor_ops;
 */\r
 static int sensor_parameter_record(struct i2c_client *client)\r
 {\r
-       u8 ret_l,ret_m,ret_h;\r
-       int tp_l,tp_m,tp_h;\r
+       u8 ret_l,ret_h;\r
+       int tp_l,tp_h;\r
        \r
        struct generic_sensor *sensor = to_generic_sensor(client);\r
        struct specific_sensor *spsensor = to_specific_sensor(sensor);\r
@@ -910,7 +910,7 @@ static int sensor_parameter_record(struct i2c_client *client)
 \r
 static int sensor_ae_transfer(struct i2c_client *client)\r
 {\r
-       unsigned int prev_line_len,cap_line_len,shutter;\r
+       //unsigned int prev_line_len,cap_line_len,shutter;\r
        struct generic_sensor *sensor = to_generic_sensor(client);\r
        struct specific_sensor *spsensor = to_specific_sensor(sensor);\r
        int preview_ae_integration, capture_ae_integration;\r
@@ -971,8 +971,6 @@ static int sensor_ae_transfer(struct i2c_client *client)
 */\r
 static int sensor_activate_cb(struct i2c_client *client)\r
 {\r
-    u8 reg_val;\r
-\r
     SENSOR_DG("%s",__FUNCTION__);\r
        \r
        \r
@@ -983,7 +981,6 @@ static int sensor_activate_cb(struct i2c_client *client)
 */\r
 static int sensor_deactivate_cb(struct i2c_client *client)\r
 {\r
-       u8 reg_val;\r
        struct generic_sensor *sensor = to_generic_sensor(client);\r
 \r
     SENSOR_DG("%s",__FUNCTION__);\r
@@ -1015,8 +1012,6 @@ static int sensor_s_fmt_cb_th(struct i2c_client *client,struct v4l2_mbus_framefm
 */\r
 static int sensor_s_fmt_cb_bh (struct i2c_client *client,struct v4l2_mbus_framefmt *mf, bool capture)\r
 {\r
-       u8 val;\r
-\r
     if (capture) {\r
                sensor_ae_transfer(client);\r
                printk("set fmt set!!!!!!!!!!!!");      \r
@@ -1169,7 +1164,8 @@ static int sensor_focus_af_close_usr_cb(struct i2c_client *client){
        return 0;\r
 }\r
 \r
-static int sensor_focus_af_zoneupdate_usr_cb(struct i2c_client *client){\r
+static int sensor_focus_af_zoneupdate_usr_cb(struct i2c_client *client, int *zone_tm_pos)\r
+{\r
        return 0;\r
 }\r
 \r