OSDN Git Service

media: hantro: Cleanup format negotiation helpers
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 5 Dec 2019 14:24:41 +0000 (15:24 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 09:25:30 +0000 (10:25 +0100)
commit5980d40276b36b7bcd966deada0e7de9df29f247
tree74cd7a3d2a3602d431fa9dec70bfd82633517051
parent0fb36893c6c129d48965332a23fa4ea6b075ad0c
media: hantro: Cleanup format negotiation helpers

Format negotiation helpers, hantro_find_format()
and hantro_get_default_fmt() can be simplified,
making the code a little bit clearer.

More importantly, this change is preparation work
for the post-processor usage.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_v4l2.c