diff options
| author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-10-19 12:31:21 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 12:08:13 -0400 |
| commit | baf1b186eaa1e0ac3a385c92b1a955b10c59ee84 (patch) | |
| tree | bc8ced9bd99efb6fbcb60e24025e6226752b1481 /drivers/media/v4l2-core/v4l2-async.c | |
| parent | media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C (diff) | |
| download | linux-baf1b186eaa1e0ac3a385c92b1a955b10c59ee84.tar.gz linux-baf1b186eaa1e0ac3a385c92b1a955b10c59ee84.zip | |
media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the
subdev->flags. But this driver overwrites subdev->flags immediately after
calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after
all.
This stops breaking subdev->flags and preserves V4L2_SUBDEV_FL_IS_I2C.
Side note: According to the comment in v4l2_device_unregister(), this is
problematic only if the device is platform bus device. Device tree or
ACPI based devices are not affected.
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions
