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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

父節點
a20a82b864
當前提交
ca0fa5f04f
@@ -1335,7 +1335,7 @@ static int adv7180_probe(struct i2c_client *client,
|
||||
goto err_unregister_vpp_client;
|
||||
|
||||
state->pad.flags = MEDIA_PAD_FL_SOURCE;
|
||||
sd->entity.flags |= MEDIA_ENT_F_ATV_DECODER;
|
||||
sd->entity.function = MEDIA_ENT_F_ATV_DECODER;
|
||||
ret = media_entity_pads_init(&sd->entity, 1, &state->pad);
|
||||
if (ret)
|
||||
goto err_free_ctrl;
|
||||
|
Reference in New Issue
Block a user