From: Manjunath Hadli Date: Fri, 13 Apr 2012 07:47:17 +0000 (-0300) Subject: [media] davinci: vpif: fix setting of data width in config_vpif_params() function X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3bc1953b22ba11922190bc76682ece431b6eefff;p=linux-beck.git [media] davinci: vpif: fix setting of data width in config_vpif_params() function fix setting of data width in config_vpif_params() function, which was wrongly set. Signed-off-by: Manjunath Hadli Signed-off-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/davinci/vpif.c b/drivers/media/video/davinci/vpif.c index 774bcd3cf50c..8c4ff14377ad 100644 --- a/drivers/media/video/davinci/vpif.c +++ b/drivers/media/video/davinci/vpif.c @@ -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);