Commit e7f4861d authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Mauro Carvalho Chehab

media: ov2680: rename ov2680_v4l2_init() to ov2680_v4l2_register()

The function not only does initialization but also registers the subdevice
so change its name to make this more clear.
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b7a41762
...@@ -926,7 +926,7 @@ static int ov2680_mode_init(struct ov2680_dev *sensor) ...@@ -926,7 +926,7 @@ static int ov2680_mode_init(struct ov2680_dev *sensor)
return 0; 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; const struct v4l2_ctrl_ops *ops = &ov2680_ctrl_ops;
struct ov2680_ctrls *ctrls = &sensor->ctrls; struct ov2680_ctrls *ctrls = &sensor->ctrls;
...@@ -1092,7 +1092,7 @@ static int ov2680_probe(struct i2c_client *client) ...@@ -1092,7 +1092,7 @@ static int ov2680_probe(struct i2c_client *client)
if (ret < 0) if (ret < 0)
goto lock_destroy; goto lock_destroy;
ret = ov2680_v4l2_init(sensor); ret = ov2680_v4l2_register(sensor);
if (ret < 0) if (ret < 0)
goto lock_destroy; goto lock_destroy;
......
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