Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3929777ybi; Tue, 18 Jun 2019 08:46:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqws5sSgThPer2zHCXrtYbN4uWFr8z8zbrUw1zm192lRTD/X5y4R59ilP1n0QPf0yQL5/CJp X-Received: by 2002:a63:d458:: with SMTP id i24mr3254475pgj.171.1560872762689; Tue, 18 Jun 2019 08:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560872762; cv=none; d=google.com; s=arc-20160816; b=eUslytddXCBj0yrMRy1UnRDLM9xfRQcuyhhl+RZxQddiGuivKCPHvRZUG0IH5oEVrQ s8fY+Um/X9+LtXscdzEGm55g+DOBPNRF7PO2myhc4JCaI+QglvsnVGRl/AC3DLN7fsZ8 M00tytkqy6QciuxEbPVoZ821E67SyYocQG7YqaJJ8dmQmxRU9MOwj7UGYWWSE63ic2J5 dasVEp/jo3x9m7AcIf3jxw+LJQ7xKi0ml+l22tP1iwPtDtwINJk7pCsfB4rO70zEbAJc deix65NnkEuMq4daMSaWNq6b+pXN35GtxOxBjf4UWvOqD09Up1wC4Rvbj90g/A3fao29 8LvA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0vbPMnSPTFmTNhTvb78jQv/BzhDnMGLR+xrvA6q/kx0=; b=GKA/en8O1sgahC0/td/yn0fBuOPoyb7dIFqnZu/nzpVJDxCd1+FiWgICHJgpP9Ic9c qLqiF4uU4gHmcuDBoLGAY5OWXcp75IJYncnzeEt95mdg6txrEci6XoqFFWgm5sGOzjQ3 mNOU5NZ65ZIXJZjyrKVQdg3sKfVrLouN4Fkvmv8Fpr9AU90SE21gF87Kw0QD93NVvDcC zkzEianQTHiSmP0uM89H1gnQXGIouNJMh3LRppKbyPYOwQR0y/jb4EW5QNeLCYeqa6ZD 8WiQaJoQPYa4OFkhv7/T1UBejQC9EYPMRVhcR4hK5sT93L9yn/NsmMaTcraSb3drm4n8 UVIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=VDRhhU5R; 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 i19si8076804pfa.232.2019.06.18.08.45.47; Tue, 18 Jun 2019 08:46:02 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=VDRhhU5R; 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 S1729750AbfFRPn4 (ORCPT + 99 others); Tue, 18 Jun 2019 11:43:56 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39720 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbfFRPnx (ORCPT ); Tue, 18 Jun 2019 11:43:53 -0400 Received: by mail-wm1-f66.google.com with SMTP id z23so3769092wma.4 for ; Tue, 18 Jun 2019 08:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0vbPMnSPTFmTNhTvb78jQv/BzhDnMGLR+xrvA6q/kx0=; b=VDRhhU5RFfax5iw/D6bgy+EWGO4v9G3xyws4yLORV4eWIzJ+FQZTTX2x7NttwaSvVf bK8l7V8vhqYmhSUgyQ/sRTOMPTvLpBxKYC5k/KQ7fdi9Duu6O5z4Oaf9xXBDQyZssKp+ qIhECCaw9iKwmiov+X2tMABtA8kzifXjkEp+r3IdyfTCaMmBiy1j00VBTVDo3Bb1ZH1n w2Lr9zATdrTXx5jVOf8iA+f0U9OGOTjLO/N6yqwu33aI/OPmXjx6TGd53gIhVWJNtU7f 5PnxVhRqlP376h4FR8KVPGDFnjsAgEeNRzF8rL2ZloB1/47IxNoAMC5H5MZ7CtXcVHL/ OSkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0vbPMnSPTFmTNhTvb78jQv/BzhDnMGLR+xrvA6q/kx0=; b=B83ywGA5vxYYwVneU8l5ufYI46iYOz0+372QyA+mAqzBcgMRn+i2JHHZZVXL24FcNR iZjctjvYL38rJISPO/7GV1huDbHWtM6kGr6cuoMb6d3L2L3LWlk68Ofwjc4zknRbtnVH x/Fqr1mldDvkrSp164Dtkur8RGm2AUhkLm/ZHH4c+Qc6Xx/6phEpm8LuQ697NTUgL/Ju pOkm/3FmV0fhOAz9PkgxbJt8andaU7BA+HvkGmMJc2ndF20Fk+4HWV1om3eL8M8fE3KB 1oPhUC33AUj4op3PiFtxIfSj2kkChxAosd8QL4tCrf8Mp6FWCYFOAC6dDhSUwTi0jBHA JC3A== X-Gm-Message-State: APjAAAU1lq4IxVfhRAVGRtfmaQHO0c1wHuaV+c7o0IEsPMZhGHtZEba8 PcughJQPEY+TZdJpSx/vkjxgoydJMZE= X-Received: by 2002:a1c:2c41:: with SMTP id s62mr4270696wms.8.1560872631849; Tue, 18 Jun 2019 08:43:51 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id z5sm2633287wma.36.2019.06.18.08.43.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 08:43:51 -0700 (PDT) From: Fabien Parent To: lee.jones@linaro.org, matthias.bgg@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Fabien Parent Subject: [PATCH 2/2] mfd: mt6397: use DEFINE_RES_* helpers to define RTC resources Date: Tue, 18 Jun 2019 17:43:47 +0200 Message-Id: <20190618154347.16991-2-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190618154347.16991-1-fparent@baylibre.com> References: <20190618154347.16991-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the DEFINE_RES_{MEM,IRQ} to define the RTC reosurce for the MT6397 PMIC. Signed-off-by: Fabien Parent --- drivers/mfd/mt6397-core.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 190ed86ad93e..1e315712870b 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -23,16 +23,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.20.1