diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-06-18 05:10:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-25 08:04:00 -0400 |
commit | 173bf6e51ba5845fbfcbdd281b837870fb033bc2 (patch) | |
tree | b5b40c0c210930399cf7b2cbdacf804a255e0342 /drivers/media/i2c/mt9t001.c | |
parent | ca0fa5f04f33eea010fc1f9dfc87ff58f3a2433f (diff) | |
download | linux-stable-173bf6e51ba5845fbfcbdd281b837870fb033bc2.tar.gz linux-stable-173bf6e51ba5845fbfcbdd281b837870fb033bc2.tar.bz2 linux-stable-173bf6e51ba5845fbfcbdd281b837870fb033bc2.zip |
media: media/i2c: add missing entity functions
Several drivers in media/i2c do not set the entity function.
Correct this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/mt9t001.c')
-rw-r--r-- | drivers/media/i2c/mt9t001.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/mt9t001.c b/drivers/media/i2c/mt9t001.c index 9d981d9f5686..f683d2cb0486 100644 --- a/drivers/media/i2c/mt9t001.c +++ b/drivers/media/i2c/mt9t001.c @@ -943,6 +943,7 @@ static int mt9t001_probe(struct i2c_client *client, mt9t001->subdev.internal_ops = &mt9t001_subdev_internal_ops; mt9t001->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; + mt9t001->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; mt9t001->pad.flags = MEDIA_PAD_FL_SOURCE; ret = media_entity_pads_init(&mt9t001->subdev.entity, 1, &mt9t001->pad); |