diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2018-09-01 08:46:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-17 15:19:59 -0400 |
commit | e7f4861dad89b100f56eee59c2c2a6f0ee1287ff (patch) | |
tree | 05fc72ff7718433087b536b55a13bcb6f0e3b8a7 /drivers/media/i2c/ov2680.c | |
parent | b7a417628abf49dae98cb80a272dc133b0e4d1a3 (diff) | |
download | linux-e7f4861dad89b100f56eee59c2c2a6f0ee1287ff.tar.gz linux-e7f4861dad89b100f56eee59c2c2a6f0ee1287ff.tar.bz2 linux-e7f4861dad89b100f56eee59c2c2a6f0ee1287ff.zip |
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: 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>
Diffstat (limited to 'drivers/media/i2c/ov2680.c')
-rw-r--r-- | drivers/media/i2c/ov2680.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index 3ccd584568fb..0e34e15b67b3 100644 --- a/drivers/media/i2c/ov2680.c +++ b/drivers/media/i2c/ov2680.c @@ -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; @@ -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; |