]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] davinci: vpif: fix setting of data width in config_vpif_params() function
authorManjunath Hadli <manjunath.hadli@ti.com>
Fri, 13 Apr 2012 07:47:17 +0000 (04:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 22:02:28 +0000 (19:02 -0300)
fix setting of data width in config_vpif_params() function,
which was wrongly set.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/davinci/vpif.c

index 774bcd3cf50cd401351c2f9900c4c02ad9d066f3..8c4ff14377ad6c00c13d522a1d5cf151aaeac523 100644 (file)
@@ -346,7 +346,7 @@ static void config_vpif_params(struct vpif_params *vpifparams,
 
                        value = regr(reg);
                        /* Set data width */
-                       value &= ((~(unsigned int)(0x3)) <<
+                       value &= ~(0x3u <<
                                        VPIF_CH_DATA_WIDTH_BIT);
                        value |= ((vpifparams->params.data_sz) <<
                                                     VPIF_CH_DATA_WIDTH_BIT);