media: allegro: use new v4l2_m2m_ioctl_try_encoder_cmd funcs
authorMichael Tretter <m.tretter@pengutronix.de>
Tue, 25 Jun 2019 14:13:20 +0000 (10:13 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 27 Jun 2019 11:36:06 +0000 (07:36 -0400)
commitf81cbfc4f82a75ca0a2dc181a9c93b88f0e6509d
treef18f3201bd2fa2636f1a715c311d31ffe18c05fd
parent46fb4749788159412622c5bb9d087a217cc00152
media: allegro: use new v4l2_m2m_ioctl_try_encoder_cmd funcs

As the try_encoder_cmd is identical for many drivers, there are now
helpers for this function in the mem2mem core. Use the helper in
allegro.

This fixes the v4l2-compliance test regarding V4L2_ENC_CMD_STOP, because
the allegro-specific function rejected invalid flags.

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+samsung@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c