]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fbdev: sh_mipi_dsi: tidyup VMCTR2 parameter expression
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 9 Nov 2011 04:34:12 +0000 (20:34 -0800)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 21 Nov 2011 23:43:20 +0000 (23:43 +0000)
VMCTR2 parameter will be supported more in the future.
1 << xx style is easy to understand.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/sh_mipi_dsi.c

index 94bb1bb54a028090e2c377177e9ea26b8a5cf51f..20ccc23699fe364c94889e2416276e0c16e362e2 100644 (file)
@@ -317,9 +317,9 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
         * HSA period allowed, no commands in LP
         */
        if (pdata->flags & SH_MIPI_DSI_HSABM)
-               vmctr2 |= 0x20;
+               vmctr2 |= 1 << 5;
        if (pdata->flags & SH_MIPI_DSI_HBPBM)
-               vmctr2 |= 0x10;
+               vmctr2 |= 1 << 4;
        iowrite32(vmctr2, mipi->linkbase + VMCTR2);
 
        /*