mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4
gcc-4.4.4 has issues with initialization of anonymous unions:
drivers/media/cec/cec-adap.c: In function 'cec_queue_msg_fh':
drivers/media/cec/cec-adap.c:184: error: unknown field 'lost_msgs' specified in initializer
work around this.
Fixes: 6b2bbb0874 ("media: cec: rework the cec event handling")
Acked-by: Geert Uytterhoeven <[email protected]>
Cc: Hans Verkuil <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a47f68d6a9
commit
c848c49a62
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,10 @@ static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg)
|
|||
{
|
||||
static const struct cec_event ev_lost_msgs = {
|
||||
.event = CEC_EVENT_LOST_MSGS,
|
||||
.lost_msgs.lost_msgs = 1,
|
||||
.flags = 0,
|
||||
{
|
||||
.lost_msgs = { 1 },
|
||||
},
|
||||
};
|
||||
struct cec_msg_entry *entry;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue