mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 16:36:41 +07:00
[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: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
381d7f79da
commit
5015389fda
@ -366,7 +366,7 @@ int em28xx_init_camera(struct em28xx *dev)
|
||||
v4l2->sensor_xtal = 4300000;
|
||||
pdata.xtal = v4l2->sensor_xtal;
|
||||
if (NULL ==
|
||||
v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap,
|
||||
v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap,
|
||||
&mt9v011_info, NULL)) {
|
||||
ret = -ENODEV;
|
||||
break;
|
||||
@ -423,7 +423,7 @@ int em28xx_init_camera(struct em28xx *dev)
|
||||
v4l2->sensor_yres = 480;
|
||||
|
||||
subdev =
|
||||
v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap,
|
||||
v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap,
|
||||
&ov2640_info, NULL);
|
||||
if (NULL == subdev) {
|
||||
ret = -ENODEV;
|
||||
|
Loading…
Reference in New Issue
Block a user