diff options
author | Manjunath Hadli <manjunath.hadli@ti.com> | 2012-04-13 03:47:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 18:02:28 -0400 |
commit | 3bc1953b22ba11922190bc76682ece431b6eefff (patch) | |
tree | 70ccb7e071482aa8d843c8602a16fb05bd118924 /drivers/media/video/davinci | |
parent | 0316b89ae0de139875594d7fa0527cb5af69bd69 (diff) |
[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 <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/davinci')
-rw-r--r-- | drivers/media/video/davinci/vpif.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
346 | 346 | ||
347 | value = regr(reg); | 347 | value = regr(reg); |
348 | /* Set data width */ | 348 | /* Set data width */ |
349 | value &= ((~(unsigned int)(0x3)) << | 349 | value &= ~(0x3u << |
350 | VPIF_CH_DATA_WIDTH_BIT); | 350 | VPIF_CH_DATA_WIDTH_BIT); |
351 | value |= ((vpifparams->params.data_sz) << | 351 | value |= ((vpifparams->params.data_sz) << |
352 | VPIF_CH_DATA_WIDTH_BIT); | 352 | VPIF_CH_DATA_WIDTH_BIT); |