diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/media-device.c | 4 |
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, | |||
109 | if (ent->name) | 109 | if (ent->name) |
110 | strlcpy(u_ent.name, ent->name, sizeof(u_ent.name)); | 110 | strlcpy(u_ent.name, ent->name, sizeof(u_ent.name)); |
111 | u_ent.type = ent->function; | 111 | u_ent.type = ent->function; |
112 | u_ent.revision = ent->revision; | 112 | u_ent.revision = 0; /* Unused */ |
113 | u_ent.flags = ent->flags; | 113 | u_ent.flags = ent->flags; |
114 | u_ent.group_id = ent->group_id; | 114 | u_ent.group_id = 0; /* Unused */ |
115 | u_ent.pads = ent->num_pads; | 115 | u_ent.pads = ent->num_pads; |
116 | u_ent.links = ent->num_links - ent->num_backlinks; | 116 | u_ent.links = ent->num_links - ent->num_backlinks; |
117 | memcpy(&u_ent.raw, &ent->info, sizeof(ent->info)); | 117 | memcpy(&u_ent.raw, &ent->info, sizeof(ent->info)); |