media: allegro: add a version field to mcu messages
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 13 Jul 2020 14:42:28 +0000 (16:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:00:31 +0000 (14:00 +0200)
commit11146a758317f88034895dd778bf4a2ccac47303
treec874e254cf13d08ad14666d2a27be470bad17635
parentd8fefda89ee292b2871ce523227e5a49d4afc6ea
media: allegro: add a version field to mcu messages

In order to distinguish the message format that is expected by the
firmware, add a version field to the message header. This allows to
encode and decode the messages for the version of the firmware that was
loaded by the driver.

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
drivers/staging/media/allegro-dvt/allegro-mail.h