Skip to content

Commit 70d4a9e

Browse files
slongerbeammchehab
authored andcommitted
media: entity: Pass entity to get_fwnode_pad operation
Add a missing pointer to the entity in the media_entity operation get_fwnode_pad. There are no implementers of this op yet, but a future entity that does so will almost certainly need a reference to itself to carry out the work. operation") Fixes: ae45cd5 ("[media] media: entity: Add get_fwnode_pad entity Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent b2bbf1a commit 70d4a9e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/media/mc/mc-entity.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ int media_entity_get_fwnode_pad(struct media_entity *entity,
386386
if (ret)
387387
return ret;
388388

389-
ret = entity->ops->get_fwnode_pad(&endpoint);
389+
ret = entity->ops->get_fwnode_pad(entity, &endpoint);
390390
if (ret < 0)
391391
return ret;
392392

‎include/media/media-entity.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ struct media_pad {
212212
* mutex held.
213213
*/
214214
struct media_entity_operations {
215-
int (*get_fwnode_pad)(struct fwnode_endpoint *endpoint);
215+
int (*get_fwnode_pad)(struct media_entity *entity,
216+
struct fwnode_endpoint *endpoint);
216217
int (*link_setup)(struct media_entity *entity,
217218
const struct media_pad *local,
218219
const struct media_pad *remote, u32 flags);

0 commit comments

Comments
 (0)