[COMMON] media: smfc: change a function name to smfc_v4l2_prepare_s_fmt
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 8 May 2015 02:07:40 +0000 (11:07 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:19 +0000 (20:22 +0300)
smfc_v4l2_check_s_fmt() actually configures type for the current
vb2_queue and JPEG operation mode. 'check' in the function name
does not imply the function changes something.

Change-Id: I778a7d83f217224160a6fd4c34c20ffdfc15fb12
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc-v4l2-ioctls.c

index dfef00825a0418f20156aee22c0a55c8cbcf424f..bb86caed96edf874cde81bdac552a52c06dbdfa3 100644 (file)
@@ -628,9 +628,9 @@ static int smfc_v4l2_try_fmt_mplane(struct file *filp, void *fh,
                        ctx, smfc_fmt, f->type, &f->fmt.pix_mp) ? 0 : -EINVAL;
 }
 
-static int smfc_v4l2_check_s_fmt(struct smfc_ctx *ctx,
-                                const struct smfc_image_format *smfc_fmt,
-                                __u32 type)
+static int smfc_v4l2_prepare_s_fmt(struct smfc_ctx *ctx,
+                                  const struct smfc_image_format *smfc_fmt,
+                                  __u32 type)
 {
        struct vb2_queue *thisvq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, type);
        struct vb2_queue *othervq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
@@ -676,7 +676,7 @@ static int smfc_v4l2_s_fmt_mplane(struct file *filp, void *fh,
        struct smfc_ctx *ctx = v4l2_fh_to_smfc_ctx(fh);
        const struct smfc_image_format *smfc_fmt =
                        smfc_find_format(ctx->smfc, f->fmt.pix_mp.pixelformat);
-       int ret = smfc_v4l2_check_s_fmt(ctx, smfc_fmt, f->type);
+       int ret = smfc_v4l2_prepare_s_fmt(ctx, smfc_fmt, f->type);
 
        if (ret)
                return ret;
@@ -704,7 +704,7 @@ static int smfc_v4l2_s_fmt_mplane(struct file *filp, void *fh,
                                V4L2_BUF_TYPE_VIDEO_OUTPUT);
                /*
                 * type change of the current queue is completed in
-                * smfc_v4l2_check_s_fmt()
+                * smfc_v4l2_prepare_s_fmt()
                 */
                othervq->type = v4l2_to_multiplane_type(othervq->type);
        }
@@ -746,7 +746,7 @@ static int smfc_v4l2_s_fmt(struct file *filp, void *fh, struct v4l2_format *f)
        struct smfc_ctx *ctx = v4l2_fh_to_smfc_ctx(fh);
        const struct smfc_image_format *smfc_fmt =
                        smfc_find_format(ctx->smfc, f->fmt.pix.pixelformat);
-       int ret = smfc_v4l2_check_s_fmt(ctx, smfc_fmt, f->type);
+       int ret = smfc_v4l2_prepare_s_fmt(ctx, smfc_fmt, f->type);
 
        if (ret)
                return ret;