Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758140Ab1BKVAf (ORCPT ); Fri, 11 Feb 2011 16:00:35 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:51526 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758085Ab1BKVAe (ORCPT ); Fri, 11 Feb 2011 16:00:34 -0500 X-IronPort-AV: E=McAfee;i="5400,1158,6254"; a="74108724" Message-ID: <4D55A372.9090705@codeaurora.org> Date: Fri, 11 Feb 2011 13:00:34 -0800 From: Steve Muckle User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110119 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: Daniel Walker CC: Stepan Moskovchenko , davidb@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] msm: iommu: Generalize platform data for multiple targets References: <1297456098-3241-1-git-send-email-stepanm@codeaurora.org> <1297456098-3241-2-git-send-email-stepanm@codeaurora.org> <1297456934.4852.11.camel@m0nster> <4D55A16A.7030300@codeaurora.org> <1297457899.4852.14.camel@m0nster> In-Reply-To: <1297457899.4852.14.camel@m0nster> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1349 Lines: 34 On 02/11/11 12:58, Daniel Walker wrote: > On Fri, 2011-02-11 at 12:51 -0800, Steve Muckle wrote: >> On 02/11/11 12:42, Daniel Walker wrote: >>>> 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/