]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: davinci: dm644x: improve readability using macro
authorManjunath Hadli <manjunath.hadli@ti.com>
Wed, 21 Dec 2011 13:43:37 +0000 (19:13 +0530)
committerSekhar Nori <nsekhar@ti.com>
Fri, 24 Feb 2012 21:10:20 +0000 (02:40 +0530)
Replace the VPSS base address "magic number" with the
define "DM644X_VPSS_BASE" to improve readability.

While at it, fix the indentation done using spaces in
this part of code.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/dm644x.c

index bf14ec09d3f3c5213f6438e1d354aa8a9155c85e..b5377a2ee230d6aded7209efca7c28e8e7ce1f99 100644 (file)
@@ -594,13 +594,15 @@ static struct platform_device dm644x_asp_device = {
        .resource       = dm644x_asp_resources,
 };
 
+#define DM644X_VPSS_BASE       0x01c73400
+
 static struct resource dm644x_vpss_resources[] = {
        {
                /* VPSS Base address */
                .name           = "vpss",
-               .start          = 0x01c73400,
-               .end            = 0x01c73400 + 0xff,
-               .flags          = IORESOURCE_MEM,
+               .start          = DM644X_VPSS_BASE,
+               .end            = DM644X_VPSS_BASE + 0xff,
+               .flags          = IORESOURCE_MEM,
        },
 };