Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2203485pxa; Mon, 17 Aug 2020 03:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybFrV3b9B0I2nKeImK8jITqZlRP/2JFwdNLSonjIKk3jzumM2biWFcbwyejVYnYGzUWv9l X-Received: by 2002:a17:906:37d1:: with SMTP id o17mr14906208ejc.98.1597661960601; Mon, 17 Aug 2020 03:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597661960; cv=none; d=google.com; s=arc-20160816; b=RC5BI5F18gzsBxuk+YbA116EgB7UrJm4XtaMa4c9n3lyiY2aU3Sv0OO2dTMSyVJSFP 3T3g1Hs3vbPmE0+yChzXE1X7Riq8EVO+P3kPJfWk1QxrpEiu2WIl61B2aUD3I2E7xS95 6Nhady95YS5J9h0uq8AKjPmLASlV54aV95BJvm5lLlk0GI71nYUeSdSGHSn6Zzzmtu2S d1ABOgxCnd1JJIbf0/WeFkMCWkszkO50QiYFF6HRjBfXKfCsUJpXZzzCKGYpvZ4QU/+f ZyVLzbOIltneRV8NY45IThz0pU7kqv3mOQCsusT58GAk3umb9WTEd+Ouk4BLg4mcd7XO mC5A== 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:dkim-signature; bh=t5bxP7SBsyG/FaxnJHfQjTjpWsNLjhkZMYmiwNpRv5E=; b=dAfmpCrqRkM9BuLnhf64gDgfx3z4Yqn7QL/EGM/WUqKNOIsX4j3W1twqejtBFcCyIM yeTg1AoEhtQtHwHr+tj8KNF62UdFjij4ds58Mu6NonIx7KyfxVWerMZwCjYF89jqqkea JjQkq/Q/bWrk9i/SAvHAnb3Y8Kk/+agSoVMRkZOUE0LZz8B7lwjFA2sjm5gKc2yscc8i uIhMnMbCZWm5bAGFRnvNRbrFb+IbqPH3O/XEj8qa0aKasetRnz+UDpoQagQcF2p3Ky9u gurJ7z8u5l6Pfd6icxsz6TMQuW7rzi7MRp8qeiRlWv4lZ1L6iJpPTvayabtVae0zcArU 8t1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HO7InCj5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy22si10438555ejb.137.2020.08.17.03.58.57; Mon, 17 Aug 2020 03:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HO7InCj5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbgHQKtM (ORCPT + 99 others); Mon, 17 Aug 2020 06:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726612AbgHQKsw (ORCPT ); Mon, 17 Aug 2020 06:48:52 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76686C061389 for ; Mon, 17 Aug 2020 03:48:52 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id d19so7921172pgl.10 for ; Mon, 17 Aug 2020 03:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t5bxP7SBsyG/FaxnJHfQjTjpWsNLjhkZMYmiwNpRv5E=; b=HO7InCj5DyHxtQgmb+1KB7+pIlkzUgKfEmsbL0H0SYyo5af3rPrGCpvNyoqeBQ5r8I HybpsHuOOJjfzI2HxXoypVGpBcIeuO7SsnhNX1mLlDhCHIlCPMca2sBS7kfJ1+5lkWTL GZ5klR6KBdfbj+LkssigwXNmTTUo8ny+UTvblxIeKQwwBn9pmoJc8IBmb8VPROIuJHw+ KR4ssvdt15UtIuQsP+CU6LWmYAVtLD19UU/ZUrtMXoE0yrDX/Vy4lfSGSRrVKKddt90N YlHRv//ef4GBmYcqVAwhetNxRuOly5BWordloaAq2FLxTfrdQZH4viOp/FRzJM6Jr38T ntsQ== 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; bh=t5bxP7SBsyG/FaxnJHfQjTjpWsNLjhkZMYmiwNpRv5E=; b=oVv0oNr7ysHomEZKQ+N6XAY7eDoCGEmcPXaYoo9ed5p1pw7VMJZbclF51ojCbv60tI PR3+KWaHRzMVyX7VfvJ+R1x36RNsNbscoFGELoGT5vnGSh4Q1q0ZrTDD8T9ZPxJsXOpA NEfj+PB5piwgz0Vo107SJmOSPSJ809qwTnFqegwcwik0hyUrOc/ly3NDhhxeDSqUAIoz 8CqTx+IJRUe7wPw9qhre3PlUYwPr+/yTKcfcAvV1n1AXojBca9hwRhEtE9NeyfNE5LC2 ApNl56D//2+EzUyKF1KDRO9sbfukRJq0kEMBWQiR3O496RIa42OXNBsM0nLz8j3XGdB1 EW1Q== X-Gm-Message-State: AOAM532WgxFrlfv6tIC3HsQbSCOoMw1pxMKQZ0M3YIYDQWzu02myqZeG 9Bq3rb+pBpZXSD4mscps0XU= X-Received: by 2002:a63:4450:: with SMTP id t16mr9468564pgk.3.1597661332106; Mon, 17 Aug 2020 03:48:52 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:577:c217:67e6:a40c:a3bf:1945]) by smtp.gmail.com with ESMTPSA id k12sm16976528pjp.38.2020.08.17.03.48.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2020 03:48:51 -0700 (PDT) From: Gene Chen 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, gene_chen@richtek.com, benjamin.chao@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com Subject: [PATCH v4 4/9] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources Date: Mon, 17 Aug 2020 18:47:52 +0800 Message-Id: <1597661277-27862-5-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597661277-27862-1-git-send-email-gene.chen.richtek@gmail.com> References: <1597661277-27862-1-git-send-email-gene.chen.richtek@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Combine mt6360 pmic/ldo resources into mt6360 regulator resources to simplify the similar resources object. Signed-off-by: Gene Chen --- drivers/mfd/mt6360-core.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c index 692e47b..5119e51 100644 --- a/drivers/mfd/mt6360-core.c +++ b/drivers/mfd/mt6360-core.c @@ -265,7 +265,7 @@ static const struct resource mt6360_led_resources[] = { DEFINE_RES_IRQ_NAMED(MT6360_FLED1_STRB_TO_EVT, "fled1_strb_to_evt"), }; -static const struct resource mt6360_pmic_resources[] = { +static const struct resource mt6360_regulator_resources[] = { DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_PGB_EVT, "buck1_pgb_evt"), DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_OC_EVT, "buck1_oc_evt"), DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_OV_EVT, "buck1_ov_evt"), @@ -278,9 +278,6 @@ static const struct resource mt6360_pmic_resources[] = { DEFINE_RES_IRQ_NAMED(MT6360_LDO7_OC_EVT, "ldo7_oc_evt"), DEFINE_RES_IRQ_NAMED(MT6360_LDO6_PGB_EVT, "ldo6_pgb_evt"), DEFINE_RES_IRQ_NAMED(MT6360_LDO7_PGB_EVT, "ldo7_pgb_evt"), -}; - -static const struct resource mt6360_ldo_resources[] = { DEFINE_RES_IRQ_NAMED(MT6360_LDO1_OC_EVT, "ldo1_oc_evt"), DEFINE_RES_IRQ_NAMED(MT6360_LDO2_OC_EVT, "ldo2_oc_evt"), DEFINE_RES_IRQ_NAMED(MT6360_LDO3_OC_EVT, "ldo3_oc_evt"), @@ -298,10 +295,8 @@ static const struct mfd_cell mt6360_devs[] = { NULL, 0, 0, "mediatek,mt6360-chg"), OF_MFD_CELL("mt6360-led", mt6360_led_resources, NULL, 0, 0, "mediatek,mt6360-led"), - OF_MFD_CELL("mt6360-pmic", mt6360_pmic_resources, - NULL, 0, 0, "mediatek,mt6360-pmic"), - OF_MFD_CELL("mt6360-ldo", mt6360_ldo_resources, - NULL, 0, 0, "mediatek,mt6360-ldo"), + OF_MFD_CELL("mt6360-regulator", mt6360_regulator_resources, + NULL, 0, 0, "mediatek,mt6360-regulator"), OF_MFD_CELL("mt6360-tcpc", NULL, NULL, 0, 0, "mediatek,mt6360-tcpc"), }; -- 2.7.4