Commit 5015389f authored by Frank Schaefer's avatar Frank Schaefer Committed by Mauro Carvalho Chehab

[media] em28xx-v4l: simplify some pointers in em28xx_init_camera()

Pointer v4l2" can be used instead of "dev->v4l2, which saves some characters.
Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 381d7f79
...@@ -366,7 +366,7 @@ int em28xx_init_camera(struct em28xx *dev) ...@@ -366,7 +366,7 @@ int em28xx_init_camera(struct em28xx *dev)
v4l2->sensor_xtal = 4300000; v4l2->sensor_xtal = 4300000;
pdata.xtal = v4l2->sensor_xtal; pdata.xtal = v4l2->sensor_xtal;
if (NULL == if (NULL ==
v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap, v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap,
&mt9v011_info, NULL)) { &mt9v011_info, NULL)) {
ret = -ENODEV; ret = -ENODEV;
break; break;
...@@ -423,7 +423,7 @@ int em28xx_init_camera(struct em28xx *dev) ...@@ -423,7 +423,7 @@ int em28xx_init_camera(struct em28xx *dev)
v4l2->sensor_yres = 480; v4l2->sensor_yres = 480;
subdev = subdev =
v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap, v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap,
&ov2640_info, NULL); &ov2640_info, NULL);
if (NULL == subdev) { if (NULL == subdev) {
ret = -ENODEV; ret = -ENODEV;
......
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