media: allegro: fix type of gop_length in channel_create message
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:23 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:10:04 +0000 (09:10 +0100)
commit8277815349327b8e65226eb58ddb680f90c2c0c0
tree4590d7686e0b5d4e9845ae6e096f147859ea4809
parentb646f99642b7499b469eaff25829a0b91a69692a
media: allegro: fix type of gop_length in channel_create message

The gop_length field is actually only u16 and there are two more u8
fields in the message:

- the number of consecutive b-frames
- frequency of golden frames

Fix the message and thus fix the configuration of the GOP length.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c