Skip to content

Commit

Permalink
media: ov2680: rename ov2680_v4l2_init() to ov2680_v4l2_register()
Browse files Browse the repository at this point in the history
The function not only does initialization but also registers the subdevice
so change its name to make this more clear.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  • Loading branch information
martinezjavier authored and mchehab committed Sep 17, 2018
1 parent b7a4176 commit e7f4861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/i2c/ov2680.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ static int ov2680_mode_init(struct ov2680_dev *sensor)
return 0;
}

static int ov2680_v4l2_init(struct ov2680_dev *sensor)
static int ov2680_v4l2_register(struct ov2680_dev *sensor)
{
const struct v4l2_ctrl_ops *ops = &ov2680_ctrl_ops;
struct ov2680_ctrls *ctrls = &sensor->ctrls;
Expand Down Expand Up @@ -1092,7 +1092,7 @@ static int ov2680_probe(struct i2c_client *client)
if (ret < 0)
goto lock_destroy;

ret = ov2680_v4l2_init(sensor);
ret = ov2680_v4l2_register(sensor);
if (ret < 0)
goto lock_destroy;

Expand Down

0 comments on commit e7f4861

Please sign in to comment.