[media] am437x-vpfe: add support for xfer_func
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 28 Apr 2015 12:41:03 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 14:48:32 +0000 (11:48 -0300)
Make this part of the format check.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/am437x/am437x-vpfe.c

index ea971bb0d9c66b5127a6880f0e33845010642a72..1fba339cddc15a78b8d2f9da7da2e5e222c820b1 100644 (file)
@@ -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)