diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-11-05 17:42:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-20 06:31:50 -0500 |
commit | fa5034c667c224be48db31a0d043dba305e8e7a8 (patch) | |
tree | f5b74b0c5c23797016fa5357e396e10e11d8c3c8 /include/media/media-entity.h | |
parent | c1026c580df130c1d1943fff99bae0bef2cafa7b (diff) |
[media] media: fix truncated entity specification
When enumerating an entity, assign the entire entity specification
instead of only the first two words. (This requires giving the
specification union a name.)
So far, no driver actually uses more than two words, but this will
be needed for ALSA entities.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
[laurent.pinchart@ideasonboard.com: Rename specification to info]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r-- | include/media/media-entity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h index cd8bca63a502..29e7bba78ffe 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h | |||
@@ -98,7 +98,7 @@ struct media_entity { | |||
98 | 98 | ||
99 | /* Sub-device specifications */ | 99 | /* Sub-device specifications */ |
100 | /* Nothing needed yet */ | 100 | /* Nothing needed yet */ |
101 | }; | 101 | } info; |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static inline u32 media_entity_type(struct media_entity *entity) | 104 | static inline u32 media_entity_type(struct media_entity *entity) |