Thread (10 messages) flat view 10 messages, 3 authors, 2011-02-11

[PATCH 2/3] msm: iommu: Generalize platform data for multiple targets

From: Steve Muckle <hidden>
Date: 2011-02-11 21:00:35
Also in: linux-arm-msm, lkml

On 02/11/11 12:58, Daniel Walker wrote:
On Fri, 2011-02-11 at 12:51 -0800, Steve Muckle wrote:
quoted
On 02/11/11 12:42, Daniel Walker wrote:
quoted
quoted
 static struct resource msm_iommu_jpegd_resources[] = {
 	{
-		.start = MSM_IOMMU_JPEGD_PHYS,
-		.end   = MSM_IOMMU_JPEGD_PHYS + MSM_IOMMU_JPEGD_SIZE - 1,
+		.start = 0x07300000,
+		.end   = 0x07300000 + SZ_1M - 1,
Looks worse .. Just put the macros into a static header file for both.
Why bother defining macros for these if they only appear here? I don't
think that adds any value or readability - these addresses are clearly
the physical area for the msm_iommu_jpegd. It just makes it more
annoying to have to look up the values in a separate file if you are
wondering what they are.
So your saying if you look at the number 0x07300000 you instantly know
that this JPEGD?
Yes, because it's the start address for the msm_iommu_jpegd resource.

thanks,
Steve

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help