media: rkisp1: isp: Rename rkisp1_get_remote_source()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 14 Jun 2022 19:11:08 +0000 (20:11 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 17 Jul 2022 11:19:41 +0000 (12:19 +0100)
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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c

index 2ba227b2f6a1e29091ec8aece04b47bd6f15b2d8..37623b73b1d916dab761eb0b933f2ab62d750fd7 100644 (file)
@@ -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;