Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp462324pxa; Tue, 4 Aug 2020 09:35:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8I6XaQs0+zwLskplhNv1n0WX+n4NLesm5APc6RhrOYims3f8KJNunqQaIithOoyOssm3a X-Received: by 2002:a05:6402:403:: with SMTP id q3mr15610701edv.12.1596558926755; Tue, 04 Aug 2020 09:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596558926; cv=none; d=google.com; s=arc-20160816; b=SQaBb0fPAF3G49yvCLrLiUGkiD1V1rzygrAy+41liPAGTRbMHqxyP4tAod3LIC7774 WRq4c7AAOYFK9DD5V9HW1K6RHUr9vjThVafRlaW04pfYwSyGsQHl8pTAMeIwNqEgkNQ0 /mw654TgY9y4jnPv2vGqiQarY1mAl0saihxShFhcLK181WM5N2uwy9ClQZJ3yjR+3wnw QeBkwplMUq0kkHqn5DD/T/eVjqhwqU7PH4C+RNurskDy51CgUi9+SuUuzBfyU9wQVQ9o b1vO9y8UFE8jymKk/5WaoFQnh5XWayrJ+aDjZoc+qLpoIw4QkqXjmJYZSWAYdIPFWKuY tZCw== 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=iS0DvPSRPBgUczTbvD5l3ReuZyMapKtlnNyaIUBKBbhx6h7x4fw0a39TDecEMW2OAe IZlynNI9Zd0OvGZLt6ze5w/1UEZLDnSJA3ZDW+Fn6CkgqXprKqsDHLzWadp3/odBYfeN cgYRHbAKADIlXFjILA+Wc8Z7J5WiQbX63Lc56+haMPnqsQwBAUe9nSxn0lkRIccUx4t2 JuEedLa8umGv/JgocKdDNiTh4PlnPpZFAMabmH/0YQy4P2VivpcBftIFuePtkre157r5 mGwRlJt57xNesxCDdZKm/oeqIxSNXTVXfpGKVqTkSSZpnYhJ64e3EEPfY9KbRrgIs8Kd +tCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HE8MaqVH; 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 r13si12969243eds.380.2020.08.04.09.35.03; Tue, 04 Aug 2020 09:35:26 -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=HE8MaqVH; 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 S1729961AbgHDQdd (ORCPT + 99 others); Tue, 4 Aug 2020 12:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729834AbgHDQdV (ORCPT ); Tue, 4 Aug 2020 12:33:21 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80190C06174A for ; Tue, 4 Aug 2020 09:33:21 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id g33so5129839pgb.4 for ; Tue, 04 Aug 2020 09:33:21 -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=HE8MaqVHt2WlTRoli0MbJ8ttSjwj6044ipm+DEd7YcNYTWOpsah5zMJfZQCPlQn3wq XxhahHcyq3p5FLARelylRaYJXxBCWlciVrqzyW0U56jhBb39035x84hglhGZbTN+Yrly 7/zSio7SCngnV0d+TW7+pFQO7YMKPGlxS6v97LRnBuOZcybPsiDDyiF0cHDhWtQlhWSf FC3KP4zqbH0HtBynUlhYlC5FzXpxA98yZF350KPtcqu7T3mJFAmd7tSGA+GpffSlbJo/ xUVkKriYlFWMIFqqjTiFw8rSZ8a9o5mHX+7ABKoN0jL01ETGWOZfwxsi+D0g60CjkoWT dsrA== 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=OfsyWPc8EsQFqETOkjS7GgX/PnFn2NYYjShz3PmkLEHrd3JucbZE9Qcvezvk0D/eZ8 cAS25lAtMzqh8ghnyc9648ip+Z95LxoB691vLNMGBgMy1S9ODFyzjM/PDGqk7zhSI/BP unfw13Uy44c1dh9IAt6VKvGq7DUnMEk/Dp3xxLo9In9IDSTq7/yh/XT7c5rpYWHqpLuA sRJfyD3tO3HwpjJH0uYmI+2Srm6nntXt/VH+rThU6khPLjTCCAMZvyqCDZi4Ky0i5ofJ s0q7dA01huKp+O5PVZ1LF2pIDvvzULpt6GRTwGlbO6EsKgj8ZxfxuyT/5ZLNY9blOwEj rFaA== X-Gm-Message-State: AOAM530PfRJeWFGrPO2tJBLl1zy3SxMTGu4xw9vU4TxAd49XBXZRI9oT wtZuqvOLKi92sdvQSF6eS4g= X-Received: by 2002:a62:1ad0:: with SMTP id a199mr16504535pfa.56.1596558801103; Tue, 04 Aug 2020 09:33:21 -0700 (PDT) Received: from localhost.localdomain ([123.110.251.138]) by smtp.gmail.com with ESMTPSA id m16sm657253pjz.47.2020.08.04.09.33.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2020 09:33:20 -0700 (PDT) From: Gene Chen To: lee.jones@linaro.org, matthias.bgg@gmail.com, rafael@kernel.org Cc: broonie@kernel.org, gregkh@linuxfoundation.org, 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 4/9] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources Date: Wed, 5 Aug 2020 00:32:56 +0800 Message-Id: <1596558782-3415-5-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596558782-3415-1-git-send-email-gene.chen.richtek@gmail.com> References: <1596558782-3415-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