diff options
author | Manjunath Hadli <manjunath.hadli@ti.com> | 2011-12-21 08:43:37 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2012-02-24 16:10:20 -0500 |
commit | 51f31cb3a22da0fdae69052a98d976fb4ff5857d (patch) | |
tree | c61256ecb168a72878a2807c3de6c6a70296178a /arch/arm/mach-davinci | |
parent | 5cfb19ac604a68c030b245561f575c2d1bac1d49 (diff) |
ARM: davinci: dm644x: improve readability using macro
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>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index bf14ec09d3f3..b5377a2ee230 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -594,13 +594,15 @@ static struct platform_device dm644x_asp_device = { | |||
594 | .resource = dm644x_asp_resources, | 594 | .resource = dm644x_asp_resources, |
595 | }; | 595 | }; |
596 | 596 | ||
597 | #define DM644X_VPSS_BASE 0x01c73400 | ||
598 | |||
597 | static struct resource dm644x_vpss_resources[] = { | 599 | static struct resource dm644x_vpss_resources[] = { |
598 | { | 600 | { |
599 | /* VPSS Base address */ | 601 | /* VPSS Base address */ |
600 | .name = "vpss", | 602 | .name = "vpss", |
601 | .start = 0x01c73400, | 603 | .start = DM644X_VPSS_BASE, |
602 | .end = 0x01c73400 + 0xff, | 604 | .end = DM644X_VPSS_BASE + 0xff, |
603 | .flags = IORESOURCE_MEM, | 605 | .flags = IORESOURCE_MEM, |
604 | }, | 606 | }, |
605 | }; | 607 | }; |
606 | 608 | ||