summaryrefslogtreecommitdiffstats
path: root/drivers/media/media-device.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2015-12-11 11:02:19 +0100
committerMauro Carvalho Chehab2016-01-11 15:19:04 +0100
commit8ed8c88c460fa6ce71deb9847f78a5bff4dfcb0e (patch)
tree46b906be23d4a283054abb780f1260306393c329 /drivers/media/media-device.c
parent[media] media framework: rename pads init function to media_entity_pads_init() (diff)
downloadkernel-qcow2-linux-8ed8c88c460fa6ce71deb9847f78a5bff4dfcb0e.tar.gz
kernel-qcow2-linux-8ed8c88c460fa6ce71deb9847f78a5bff4dfcb0e.tar.xz
kernel-qcow2-linux-8ed8c88c460fa6ce71deb9847f78a5bff4dfcb0e.zip
[media] media-entity.h: get rid of revision and group_id fields
Both revision and group_id fields were never used and were always initialized to zero. Remove them. Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/media-device.c')
-rw-r--r--drivers/media/media-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index b8cd7733a31c..537160bb461e 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -109,9 +109,9 @@ static long media_device_enum_entities(struct media_device *mdev,
if (ent->name)
strlcpy(u_ent.name, ent->name, sizeof(u_ent.name));
u_ent.type = ent->function;
- u_ent.revision = ent->revision;
+ u_ent.revision = 0; /* Unused */
u_ent.flags = ent->flags;
- u_ent.group_id = ent->group_id;
+ u_ent.group_id = 0; /* Unused */
u_ent.pads = ent->num_pads;
u_ent.links = ent->num_links - ent->num_backlinks;
memcpy(&u_ent.raw, &ent->info, sizeof(ent->info));