media: allegro: remove custom drain state handling
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 2 Dec 2020 13:30:39 +0000 (14:30 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 4 Jan 2021 12:22:27 +0000 (13:22 +0100)
commit0e13f6f6ff9d065cf0aba26a6f4f9c851c92a9d2
tree31292f3043664791f6f7fc7704041f87ea8e7f34
parent0f3cc7cac0e8b58a9ec1d1d76abaa9d489112c03
media: allegro: remove custom drain state handling

The v4l2-m2m has various helpers for correctly handle the draining. Drop
the driver specific state machine and use the m2m helper functions.

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/media/platform/allegro-dvt/allegro-core.c