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: 11064277 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 E59F81398 for ; Mon, 29 Jul 2019 17:43:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7B95262FF for ; Mon, 29 Jul 2019 17:43:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC0F72862A; Mon, 29 Jul 2019 17:43:42 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B5AA262FF for ; Mon, 29 Jul 2019 17:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388119AbfG2Rni (ORCPT ); Mon, 29 Jul 2019 13:43:38 -0400 Received: from mout.gmx.net ([212.227.15.18]:48715 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387717AbfG2RnI (ORCPT ); Mon, 29 Jul 2019 13:43:08 -0400 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" Cc: Josef Friedl , Frank Wunderlich 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;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fc2 XvjOKXR6/hatReNJp8Et0ESRVGXya9JiC+CEb7oDRg6pnRA5a8pwYQVi9ygKLp1JXNuEt0dxO cKDLo59U6DofOA= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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[] = {