Re: [PATCH v6 03/18] media: iris: drop IRIS_FMT_foo enumeration

From: Vikash Garodia

Date: Wed Jul 08 2026 - 01:33:03 EST



On 7/8/2026 3:58 AM, Dmitry Baryshkov wrote:
The IRIS_FMT_foo defines are only used for indexing values in the format
enumeration arrays. However this kind of enumeration doesn't follow the
V4L2 logic (which expects an array with consequitive indexing rather

Nit: s/consequitive/consequtive

than a sparse array) and complicates adding support for platforms which
support different sets of formats. Drop this enumeration and use flat
lists of supported formats.

Signed-off-by: Dmitry Baryshkov<dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
drivers/media/platform/qcom/iris/iris_instance.h | 14 --------------
drivers/media/platform/qcom/iris/iris_platform_vpu2.c | 6 +++---
drivers/media/platform/qcom/iris/iris_platform_vpu3x.c | 8 ++++----
drivers/media/platform/qcom/iris/iris_vdec.c | 8 ++++----
drivers/media/platform/qcom/iris/iris_venc.c | 8 ++++----
5 files changed, 15 insertions(+), 29 deletions(-)

Otherwise,

Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>