Commit 222c0455 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

media: rkisp1: isp: Rename rkisp1_get_remote_source()



Rename the rkisp1_get_remote_source() function to
rkisp1_isp_get_source() to use a consistent rkisp1_isp_* prefix for all
ISP functions, and drop the "remote" as the source can't be local.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarDafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 76302581
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@
 * Helpers
 */

static struct v4l2_subdev *rkisp1_get_remote_source(struct v4l2_subdev *sd)
static struct v4l2_subdev *rkisp1_isp_get_source(struct v4l2_subdev *sd)
{
	struct media_pad *local, *remote;
	struct media_entity *sensor_me;
@@ -754,7 +754,7 @@ static int rkisp1_isp_s_stream(struct v4l2_subdev *sd, int enable)
		return 0;
	}

	rkisp1->source = rkisp1_get_remote_source(sd);
	rkisp1->source = rkisp1_isp_get_source(sd);
	if (!rkisp1->source) {
		dev_warn(rkisp1->dev, "No link between isp and source\n");
		return -ENODEV;