From: Hans Verkuil <hans.verk...@cisco.com>

Make this part of the format check.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
Cc: Prabhakar Lad <prabhakar.cse...@gmail.com>
---
 drivers/media/platform/am437x/am437x-vpfe.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/am437x/am437x-vpfe.c 
b/drivers/media/platform/am437x/am437x-vpfe.c
index ea971bb..1fba339 100644
--- a/drivers/media/platform/am437x/am437x-vpfe.c
+++ b/drivers/media/platform/am437x/am437x-vpfe.c
@@ -288,7 +288,8 @@ cmp_v4l2_format(const struct v4l2_format *lhs, const struct 
v4l2_format *rhs)
                lhs->fmt.pix.field == rhs->fmt.pix.field &&
                lhs->fmt.pix.colorspace == rhs->fmt.pix.colorspace &&
                lhs->fmt.pix.ycbcr_enc == rhs->fmt.pix.ycbcr_enc &&
-               lhs->fmt.pix.quantization == rhs->fmt.pix.quantization;
+               lhs->fmt.pix.quantization == rhs->fmt.pix.quantization &&
+               lhs->fmt.pix.xfer_func == rhs->fmt.pix.xfer_func;
 }
 
 static inline u32 vpfe_reg_read(struct vpfe_ccdc *ccdc, u32 offset)
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to