Skip to contentSkip to conversation

davinci: dm644x: Replace register base value with a defined macro

PATCH New Manjunath Hadli 1 participant 1 message Apr 2, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v18 9/13 davinci: dm644x: Replace register base value with a defined macro

Replace hard coded value of vpss register base to a define macro DM644X_VPSS_REG_BASE for proper readability

---
 arch/arm/mach-davinci/dm644x.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/dm644x.c +5 -3
index 77dea11..6edb5d1 100644
@@ -586,13 +586,15 @@ static struct platform_device dm644x_asp_device = {
 	.resource	= dm644x_asp_resources,
 };
 
+#define DM644X_VPSS_REG_BASE	0x01c73400
+
 static struct resource dm644x_vpss_resources[] = {
 	{
 		/* VPSS Base address */
 		.name		= "vpss",
-		.start          = 0x01c73400,
-		.end            = 0x01c73400 + 0xff,
-		.flags          = IORESOURCE_MEM,
+		.start		= DM644X_VPSS_REG_BASE,
+		.end		= DM644X_VPSS_REG_BASE + 0xff,
+		.flags		= IORESOURCE_MEM,
 	},
 };
 
Signature · 1 line
1.6.2.4