Skip to content

Commit

Permalink
media: rkisp1: isp: Rename rkisp1_get_remote_source()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Dafna Hirschfeld <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
pinchartl authored and mchehab committed Jul 17, 2022
1 parent 7630258 commit 222c045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 222c045

Please sign in to comment.