From: Cho KyongHo Date: Fri, 8 May 2015 02:07:40 +0000 (+0900) Subject: [COMMON] media: smfc: change a function name to smfc_v4l2_prepare_s_fmt X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69ee1bb3059abb7ba9209e692583a76944540745;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: smfc: change a function name to smfc_v4l2_prepare_s_fmt 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 --- diff --git a/drivers/media/platform/exynos/smfc/smfc-v4l2-ioctls.c b/drivers/media/platform/exynos/smfc/smfc-v4l2-ioctls.c index dfef00825a04..bb86caed96ed 100644 --- a/drivers/media/platform/exynos/smfc/smfc-v4l2-ioctls.c +++ b/drivers/media/platform/exynos/smfc/smfc-v4l2-ioctls.c @@ -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;