From patchwork Mon Jul 29 17:41:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 11064289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3EBEB912 for ; Mon, 29 Jul 2019 17:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EE24262FF for ; Mon, 29 Jul 2019 17:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 223902862A; Mon, 29 Jul 2019 17:44:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5D9A262FF for ; Mon, 29 Jul 2019 17:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=jqOZ66bnY8SegS/9chdiQOeQ5Tc6GvEF/RdRsmi2YCU=; b=UCPRAfOlhJkNEtP6eo1Hr2JM9+ 8DgALmgKGhvQcNGMPx3JfCmRJyzSf6ZAPRPgmhw0lphWcyCg+1p6raFNG9h3z4DKoML2GycfVclxw 7urZF4YZU7QtdqqkMtBJYk29/0Sn21itvxeykvwK4di/avjkcsPtj/R7adHr2H9b1lraE7PO3IA7T KDPZhWmOtbsU1JTLNv68BhJShGLBJLO8AdCaJsAICxbXKWdAMLoog6w+OEvdLrcd7X40NGBOhBNM8 X5RNUnk60P0k74DvAw0vPpRjLR24ZH6X/xbfiO98N8i6G5MCNpyE2Nysmet3bUYTLGu/T8m/oZQ5e LxlHm8Pg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hs9hP-0007dL-3O; Mon, 29 Jul 2019 17:44:39 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hs9fp-0006EI-PD; Mon, 29 Jul 2019 17:43:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1564422142; bh=Wnnz+hi8y3tJujc3hWEm/IcLnQTjhjL2xa9xcuHyzKk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FfyhephkYe4DRdaN9w0q2KGd7KBz5Kl/nduMUa+jjfyznWLXupDAPLwPA2fZC+z8v kTzTAaDwrgbp5X05rsyJRG5ILIt1GRRR64bFoNvD4K4qWLw2GqTfOnosA2dWw3z+W4 txPUiJ/4bidMlThsHBRvh1QUOR/E0tX7gwoBzzu0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([185.76.97.79]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MNZgw-1hl0mi23Cs-007GSj; Mon, 29 Jul 2019 19:42:22 +0200 From: Frank Wunderlich To: Alessandro Zummo , Alexandre Belloni , Allison Randal , "David S. Miller" , devicetree@vger.kernel.org, Eddie Huang , Greg Kroah-Hartman , Jonathan Cameron , Kate Stewart , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Ferre , Richard Fontana , Rob Herring , Sean Wang , Sebastian Reichel , Thomas Gleixner , "Tianping . Fang" Subject: [PATCH v3 06/10] mfd: mt6323: some improvements of mt6397-core Date: Mon, 29 Jul 2019 19:41:50 +0200 Message-Id: <20190729174154.4335-7-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190729174154.4335-1-frank-w@public-files.de> References: <20190729174154.4335-1-frank-w@public-files.de> X-Provags-ID: V03:K1:9xr+xz6oCi8Hq4CxtCXG8ydc0wfU5FupCf1TxOUhXy6Ecocb1fM aSVn8md8+cUGLjxd3vi917JGfyikoDSJeei6MChESdK7Jj8dqbSE0fTobO4F6TIS2kX9rX1 bPqrizS5f4gfTyT4O8PsAX+IlwXuqefq3O8E3APcwZ9xot8tXdy9BR9x+3gfmVOXOzBoMDQ +G36n671GmPttm2gsgkgQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:UsEvIRAap4I=:ImFGOhnDLWESNcA1tn3e5B qa4DdURE/2MH5X+YbFL1qkr2uBiNool0SuWPHiLFYJ8txoCdqxQvyTe75X1G0bvFiJwjZluhy ubyGGi2GVNn0lQ7k2QOtsmBvgP3ob4t9ehHNW63Fo6kF546PyhG+fu5HAdDDtCkeTrg+jKyhU OSAKKgrT6DRiDsocSWyvoz9gDqWFJr822IGt2DhMCHqLt6/ebu/WblKVAByYJJzWbYy/FXNG1 As0LBu9IuorSfXIE/NU2/9NjKe23ZosC9grywzd7h/eHtPR2NGoMrN8n44eLUwRzyK/44nQOY IoXQA7VyhJ5YsyZhP8lLI9ZgqFfURg6SYNSJs3XZWUC+NPUmAemhVJLm9u3Ysv4PufLmvDct1 blp5Xs1akUj3pduj5mvC8zGVC3YyFHI+opCm1r6ZoqwYxF4fLEJ2TFGXeUyUVkPurO3ciVQkl /dFSOlLTe21+5ZUSi0+/ttZnVuQ8HXBFH0/yrW1pKnLEVJ5r0e9p74fb0u9hSOPkX5hs9FHxk Vf+pXxwyVY4CP6v3XhbU9HSBJ8Gf64ktFEVmb+RcEQUGNVEMSPvE7wP64r9mbKV30koIimJuD jVOoAZWGycFuHPuFmu5simcTCrrk42BnO3aRXY9wrSZA1ZFEeOJCr+du6N6+xmKxjdEoi+8Tb v/9feww+oQEmF9tl74of1kh2FOLk2rh3YZEiZPSLtDRhu5EFSZ+BgB2JWk9vY84WM3uVZ44rY TjkbEFH3jbVPG7Ogx2EHWavvOl89BoaHo0izGSEkhvfoLkfsmeeo9jMP33zbzW+zSFPDcHEWM KTvVqA75htmhR8T9lLYa1I/z6FtdRzlKTrEUKFBZtyQeyfRbLQfkPC/BgPrIXhhtU0fBDwOi3 bH1NpIeQ+U3/ceVV/9ixyZUsJ1vtx4UzKq3QsEO8l5n7dMdUFIatsM12u5Tb36Oervu7giv+O 5JRU5uOZO+YcUZvP4Lzi3kdpXQyvvG+m1PRpqBFJoLVtQVBE72/2EGuDDBraczlrzpbog4Fc2 XvjOKXR6/hatReNJp8Et0ESRVGXya9JiC+CEb7oDRg6pnRA5a8pwYQVi9ygKLp1JXNuEt0dxO cKDLo59U6DofOA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190729_104302_111353_BFA6D355 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Josef Friedl , Frank Wunderlich MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Josef Friedl simplyfications (resource definitions my DEFINE_RES_* macros) changes since v2: splitted v2 part 4 into 6+7 Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich --- drivers/mfd/mt6397-core.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) -- 2.17.1 diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 337bcccdb914..5f7070267c9a 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -1,10 +1,11 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2014 MediaTek Inc. + * Copyright (c) 2014-2018 MediaTek Inc. * Author: Flora Fu, MediaTek */ #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[] = {