summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/tvp7002.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-06-18 05:09:45 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-25 07:52:42 -0400
commitca0fa5f04f33eea010fc1f9dfc87ff58f3a2433f (patch)
tree6d1dd286147da3d1998357e09fb0e76ca3ea4c9b /drivers/media/i2c/tvp7002.c
parenta20a82b8642145a8d8decc6cd71e68f04647ed23 (diff)
downloadlinux-ca0fa5f04f33eea010fc1f9dfc87ff58f3a2433f.tar.gz
linux-ca0fa5f04f33eea010fc1f9dfc87ff58f3a2433f.tar.bz2
linux-ca0fa5f04f33eea010fc1f9dfc87ff58f3a2433f.zip
media: adv7180/tvp514x/tvp7002: fix entity function
The entity function was ORed with the flags field instead of assigned to the function field. 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/tvp7002.c')
-rw-r--r--drivers/media/i2c/tvp7002.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c
index 4599b7e28a8d..4f5c627579c7 100644
--- a/drivers/media/i2c/tvp7002.c
+++ b/drivers/media/i2c/tvp7002.c
@@ -1010,7 +1010,7 @@ static int tvp7002_probe(struct i2c_client *c, const struct i2c_device_id *id)
#if defined(CONFIG_MEDIA_CONTROLLER)
device->pad.flags = MEDIA_PAD_FL_SOURCE;
device->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
- device->sd.entity.flags |= MEDIA_ENT_F_ATV_DECODER;
+ device->sd.entity.function = MEDIA_ENT_F_ATV_DECODER;
error = media_entity_pads_init(&device->sd.entity, 1, &device->pad);
if (error < 0)