Commit 23555934 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: ti-vpe: cal: Rename cal_create_instance() to cal_ctx_create()

The cal_create_instance() function creates a CAL context. Rename it to
cal_ctx_create() to make its purpose more explicit.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 214f995c
...@@ -2204,7 +2204,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst) ...@@ -2204,7 +2204,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
return ret; return ret;
} }
static struct cal_ctx *cal_create_instance(struct cal_dev *cal, int inst) static struct cal_ctx *cal_ctx_create(struct cal_dev *cal, int inst)
{ {
struct cal_ctx *ctx; struct cal_ctx *ctx;
struct v4l2_ctrl_handler *hdl; struct v4l2_ctrl_handler *hdl;
...@@ -2348,7 +2348,7 @@ static int cal_probe(struct platform_device *pdev) ...@@ -2348,7 +2348,7 @@ static int cal_probe(struct platform_device *pdev)
/* Create contexts. */ /* Create contexts. */
for (i = 0; i < cal->data->num_csi2_phy; ++i) for (i = 0; i < cal->data->num_csi2_phy; ++i)
cal->ctx[i] = cal_create_instance(cal, i); cal->ctx[i] = cal_ctx_create(cal, i);
if (!cal->ctx[0] && !cal->ctx[1]) { if (!cal->ctx[0] && !cal->ctx[1]) {
cal_err(cal, "Neither port is configured, no point in staying up\n"); cal_err(cal, "Neither port is configured, no point in staying up\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment