media: i2c: rk628: remove mutex lock in g_frame_interval

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0efe96ae6fccfac7d49044f3253e07f94dd71956
This commit is contained in:
Jianwei Fan
2024-03-15 14:59:37 +08:00
parent fc124f851e
commit 863b879bf9
2 changed files with 0 additions and 4 deletions

View File

@@ -1496,9 +1496,7 @@ static int rk628_bt1120_g_frame_interval(struct v4l2_subdev *sd,
struct rk628_bt1120 *bt1120 = to_bt1120(sd);
const struct rk628_bt1120_mode *mode = bt1120->cur_mode;
mutex_lock(&bt1120->confctl_mutex);
fi->interval = mode->max_fps;
mutex_unlock(&bt1120->confctl_mutex);
return 0;
}

View File

@@ -2167,9 +2167,7 @@ static int rk628_csi_g_frame_interval(struct v4l2_subdev *sd,
struct rk628_csi *csi = to_csi(sd);
const struct rk628_csi_mode *mode = csi->cur_mode;
mutex_lock(&csi->confctl_mutex);
fi->interval = mode->max_fps;
mutex_unlock(&csi->confctl_mutex);
return 0;
}