Received: by 10.223.164.202 with SMTP id h10csp4830700wrb; Wed, 29 Nov 2017 12:35:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMYP79OKPDMbwfCN/ZdMI6VopjxLUKVvG0C/SZ6GhHeb2zHf3qoIDWifTSSrp9oweqzlG9R5 X-Received: by 10.99.96.85 with SMTP id u82mr118980pgb.247.1511987753035; Wed, 29 Nov 2017 12:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511987752; cv=none; d=google.com; s=arc-20160816; b=RIsY41fOMIqPscRDnjn27ObRcnfkLbls1vyj7ibMYu9THqh1Lr1HhrIrkICGpwTh7W ya9iI0bq03Y6tcK5bgHaGidQnYNehP5UsjGtauRQegWj9y7F0SDxO7xLJc4rP3IagdYQ fW88rT+qjWfzEk1+cLDv0DkD/hYSRpMq2P2VQfnSMQEAiVY8SvuTyHrHet1SKsIOL2gK u4pjJROdzsSMef9zUt7ghWNPovshB6lu+s5jscbNGrcOqyFTOPkNb+NH6Y3cy9dE4WCD 3C84BUDkRyAnj6XwOx6ym94IadPmUqJajHdxcpCrj3/vMbtLoXSWDcudJfYl8bcXTN1s WXoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=vpWptUcwKHZvvl66CWglFF1CwGq0ceWDAqCrLNAdCg8=; b=nYayvtSoJUl7JvGhgnxJafComK1DB6dtitjU5IazelVFynG3jPC/Z9AKo5kCA/Jjys I37jdq0C3Dz+vO73ysIevtPZaEsGreDgCrQU8xum8TFBaT8AT1RoUNpkzwWknIOhQzZu xRUby+ml9+QZc+LaBms1HtGMycZfk/uaDS7qe5WFyDBqRmAc7LvicEmKhhPcFP+FkoOC 9TeX+58lyw7VbaL0Uzy5Mt9FzSdjFh+zPWCFhaaoWqv+aLyj7Bex7hUpU/MQycicUQ/D /GZZnpKjVnJMWli21WQ3nKZkG8mn/b4d2pAUl/o3vQwU38jflprh/KV/8csfjdissPaZ xZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fbcQKKLC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si1798410pga.87.2017.11.29.12.35.39; Wed, 29 Nov 2017 12:35:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fbcQKKLC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838AbdK2Udb (ORCPT + 99 others); Wed, 29 Nov 2017 15:33:31 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:42661 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbdK2Ud3 (ORCPT ); Wed, 29 Nov 2017 15:33:29 -0500 Received: by mail-wr0-f195.google.com with SMTP id s66so4589916wrc.9 for ; Wed, 29 Nov 2017 12:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vpWptUcwKHZvvl66CWglFF1CwGq0ceWDAqCrLNAdCg8=; b=fbcQKKLCVcrGczKtBqAIhtXmLxD4dPwZSycetpw9YK1+z7+L/97H0gKripsFAODV8e r390i1wh2apY9FDQ4EwqYe1P27U425PaXI04FSqUTG2hKu2AqQJj6xCTAHdQ/iToSxpJ 3Ixrp8L6Boxl79E5yhBpufG+58L1ZlQ+TSJLqwpD4DGQDHj41uXH2qC+8j+aZ7I2erZO ZaMehKSc9HBSTvh2CNNiT1NCTuk3AFZaKYrnagc/pUDE+uBgf6q55KU0tzHc3pxga5ac 8KNmFELLMMYvFFlMNYdgu1nqWF+PJj/3ZyWlRfd4+2+MbW2e+XnoWWgaaFXWGEfBQH6t nFqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vpWptUcwKHZvvl66CWglFF1CwGq0ceWDAqCrLNAdCg8=; b=qxy1+VhcE1Q4+MTKm780qbcnY5guvPDeY3m/ZhrsglbCLNWDXV46YkKFgm0EZPOJQ6 gfmyKyQydidbe4fq4Ef/b6FT1B9MdRLLE9XCo+zaK1vMJuV2gbHZyFW4tKB25AejWfAB wI6ZPEH8iQwxQzrvlF8FfVd0bKEhF5anTeowihFVEX0WwpTjPfIFEIMTrHkPfN98zAw6 aCWIShOps0JToONA9FzElf5ScQfq3xVWAMtBjEegwDpQqSp14FnG/6oTqedCV2eNyfri CfykZVJ6dKtMfy8shzuSQxh4J7lACLkAjoFEYe5tXnGuA+aEsVpA0OkGDnA98qeDyNkZ i8WA== X-Gm-Message-State: AJaThX4hYIhc7FQvy6xSCmxL2Gi4lfRlDdC5dg/oDrqNaHhsHo3cnKt1 6vvP+JrJXozKSjQ6Bc0Mqf8= X-Received: by 10.223.160.40 with SMTP id k37mr99945wrk.66.1511987608329; Wed, 29 Nov 2017 12:33:28 -0800 (PST) Received: from [192.168.1.221] ([195.245.52.78]) by smtp.gmail.com with ESMTPSA id m64sm2375669wmb.10.2017.11.29.12.33.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 12:33:27 -0800 (PST) Subject: Re: [PATCH v2 1/6] ARM: ep93xx: ts72xx: Use DEFINE_RES_MEM macros where applicable To: Lukasz Majewski , Arnd Bergmann , arndbergmann@gmail.com, Hartley Sweeten Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Olof Johansson , Linus Walleij References: <20171116232239.16823-1-lukma@denx.de> <20171121143204.1839-1-lukma@denx.de> <20171121143204.1839-2-lukma@denx.de> From: Alexander Sverdlin Message-ID: <2f0db256-9eea-bcc0-135d-347c1c996640@gmail.com> Date: Wed, 29 Nov 2017 21:33:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20171121143204.1839-2-lukma@denx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On 21/11/17 15:31, Lukasz Majewski wrote: > This commit cleans up the code by using dedicated macros instead of > full definitions. > > Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin > --- > Changes for v2: > - None > --- > arch/arm/mach-ep93xx/ts72xx.c | 18 +++--------------- > 1 file changed, 3 insertions(+), 15 deletions(-) > > diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c > index 8745162ec05d..06345b85f27c 100644 > --- a/arch/arm/mach-ep93xx/ts72xx.c > +++ b/arch/arm/mach-ep93xx/ts72xx.c > @@ -187,16 +187,8 @@ static struct platform_device ts72xx_rtc_device = { > }; > > static struct resource ts72xx_wdt_resources[] = { > - { > - .start = TS72XX_WDT_CONTROL_PHYS_BASE, > - .end = TS72XX_WDT_CONTROL_PHYS_BASE + SZ_4K - 1, > - .flags = IORESOURCE_MEM, > - }, > - { > - .start = TS72XX_WDT_FEED_PHYS_BASE, > - .end = TS72XX_WDT_FEED_PHYS_BASE + SZ_4K - 1, > - .flags = IORESOURCE_MEM, > - }, > + DEFINE_RES_MEM(TS72XX_WDT_CONTROL_PHYS_BASE, SZ_4K), > + DEFINE_RES_MEM(TS72XX_WDT_FEED_PHYS_BASE, SZ_4K), > }; > > static struct platform_device ts72xx_wdt_device = { > @@ -216,11 +208,7 @@ static struct ep93xx_eth_data __initdata ts72xx_eth_data = { > #define TS73XX_FPGA_LOADER_BASE 0x03c00000 > > static struct resource ts73xx_fpga_resources[] = { > - { > - .start = EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE, > - .end = EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE + 1, > - .flags = IORESOURCE_MEM, > - }, > + DEFINE_RES_MEM(EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE, 0x01), > }; > > static struct platform_device ts73xx_fpga_device = { From 1584686658969029336@xxx Tue Nov 21 14:36:06 +0000 2017 X-GM-THRID: 1584302672956416146 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread