Hello, This small patch series simplifies colorspace handling for drivers by sanitizing values in the V4L2 core. Patch 1/2 improves the colorspace validity checks in existing helper functions, to make them more future-proof. It's not a hard dependency for the next patch, and could be dropped if desired. Patch 2/2 then extends the v4l_sanitize_format() function to also sanitize colorspace fields. Laurent Pinchart (2): media: v4l2: Make colorspace validity checks more future-proof media: v4l2: Sanitize colorspace values in the framework drivers/media/v4l2-core/v4l2-ioctl.c | 65 +++++++++++++++++++++++----- include/media/v4l2-common.h | 10 ++--- include/uapi/linux/videodev2.h | 29 +++++++++++++ 3 files changed, 89 insertions(+), 15 deletions(-) -- Regards, Laurent Pinchart