Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1618696ybl; Sun, 18 Aug 2019 07:06:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6HItoG61IGsPMZauyz2Y+6vpA2F8oPrKYa2bixfJcIJS3zl4mcqJdXVTv11fGENCSZ+kW X-Received: by 2002:a17:90a:a78b:: with SMTP id f11mr16682199pjq.16.1566137167274; Sun, 18 Aug 2019 07:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566137167; cv=none; d=google.com; s=arc-20160816; b=qt/HCH3k5QEcbdGk+8a7vg0NJlvWLn7UtDbpGGnusmnnTgVHC1MFQDkE8o4AOmNX6a cEZNmWLfiEONOEQgPf3+iQ7PGpOz5LPsL2TQe9qthGN0LDWmtVcENcScgJYqXt+2tjkl mtE8vDwF9gwu4v0Rn8m/RdWlDUU10jfT2YiKJicdqDuB9GOY911Iqe/4DRGsqwqlryYk rqYr2sLNOcGJoZMmiRPyEP7dcc4BxIeq55uKi2ZtHpD9OLk5dDIflwjT0P6AdCeU0Pgu O7T8EsavA091Q1xeQka5WsFZRqR3tGkJteOO5ckmMTpPp7xyOH8hL04zOP0fXjvQQR+Q ZEAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2W8wq2zHUuZ8IfwpGu4CDvvGdBdm4LcAKtYerA6NJ+0=; b=azsKFe9MRl9ZlyEvILNukCf/WUKeeVHVraYuWrVFTVGgHMZu7RMPBoQR29MaSfKWvn DESH7NF9nPi3QtOBOzD59XsOqvvP8sLRtrs2L2YEPoNDPOc1KKTM89yNX2rSakXpLivY W4ZCIDRjR1WGHaC8Mv53/PeufSJRuS3lLagkxQZL83a1OjofoDhDZqf5YrcCZ0VWbaCy rQxcQLzylmBCs5fXsn/LD+sWiOQWQdun09Ns8WZsA6EVFkcse83sqQ5rXfLlZO+ihBwZ Lj09IAtZwRnIZZqCDxCts1XYVH85TQw8jy4xZQyYaOX5PzkIMGzSK8DAg/SgrhEYDYM+ hFFA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c33si7823472pgl.300.2019.08.18.07.05.53; Sun, 18 Aug 2019 07:06:07 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726974AbfHROEl (ORCPT + 99 others); Sun, 18 Aug 2019 10:04:41 -0400 Received: from mxwww.masterlogin.de ([95.129.51.220]:43040 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbfHROE0 (ORCPT ); Sun, 18 Aug 2019 10:04:26 -0400 Received: from mxout1.routing.net (unknown [192.168.10.81]) by new.mxwww.masterlogin.de (Postfix) with ESMTPS id EB2EC96DFC; Sun, 18 Aug 2019 13:56:28 +0000 (UTC) Received: from mxbox3.masterlogin.de (unknown [192.168.10.253]) by mxout1.routing.net (Postfix) with ESMTP id 46D0F43CE1; Sun, 18 Aug 2019 13:56:29 +0000 (UTC) Received: from localhost.localdomain (fttx-pool-185.53.43.183.bambit.de [185.53.43.183]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 7662136043A; Sun, 18 Aug 2019 15:56:28 +0200 (CEST) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , devicetree@vger.kernel.org, "linux-arm-kernel @ lists . infradead . org Alessandro Zummo" , Alexandre Belloni , Eddie Huang , Josef Friedl , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Rob Herring , Sean Wang , Sebastian Reichel , "Tianping Fang" Subject: [PATCH v6 08/13] mfd: mt6323: some improvements of mt6397-core Date: Sun, 18 Aug 2019 15:56:06 +0200 Message-Id: <20190818135611.7776-9-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190818135611.7776-1-frank-w@public-files.de> References: <20190818135611.7776-1-frank-w@public-files.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josef Friedl simplyfications (resource definitions my DEFINE_RES_* macros) Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-for-MFD-by: Lee Jones --- changes since v5: none changes since v4: do not touch year of copyright changes since v3: moved part 6 forward to let compatible and driver be together changes since v2: splitted v2 part 4 into 6+7 --- drivers/mfd/mt6397-core.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 337bcccdb914..c9a81087fa55 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -23,16 +24,8 @@ #define MT6397_CID_CODE 0x97 static const struct resource mt6397_rtc_resources[] = { - { - .start = MT6397_RTC_BASE, - .end = MT6397_RTC_BASE + MT6397_RTC_SIZE, - .flags = IORESOURCE_MEM, - }, - { - .start = MT6397_IRQ_RTC, - .end = MT6397_IRQ_RTC, - .flags = IORESOURCE_IRQ, - }, + DEFINE_RES_MEM(MT6397_RTC_BASE, MT6397_RTC_SIZE), + DEFINE_RES_IRQ(MT6397_IRQ_RTC), }; static const struct resource mt6323_keys_resources[] = { -- 2.17.1