Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3813953pxk; Tue, 22 Sep 2020 03:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZi5UTGjDFA1k0FSuALWNOTXLcaVY0sU7psLlkagpjjgSEHEt8mZla2hIBACWBTq+Kpbl7 X-Received: by 2002:a05:6402:17fc:: with SMTP id t28mr3170761edy.244.1600770151205; Tue, 22 Sep 2020 03:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600770151; cv=none; d=google.com; s=arc-20160816; b=kNnIvUfnH/mv7dccIs/sYz/9wF3h8JxHRdCKom8pW+3645KAOP0GKF9YX488WL87EM +cOLyRxK4mLXJFkWgrzgxk/xXbCDdXGkfjdaaIRhsjCXXC/jIVxqrP4B/NvrUFisKlPM agHSuW/mvRgERMANUM0iwmdmcoMQAo4Bf+B5G6kB4RZVtvr2KbOeJM46rgNuvvof7qy8 mDpbUiP4ku3gCrJ8JVnhchJAirM8mkWTjdcbZ8daYusR2NuNS7MnxwLr1kDC+fHqryvp UiS25B/HQSz6N5ZHFOhESfMAiDih3f5jdvEq9AesVXiLuAEEo4SDAdkt7z4CBV7B0Qon Sp7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=t5bxP7SBsyG/FaxnJHfQjTjpWsNLjhkZMYmiwNpRv5E=; b=H8YNRdhLPCcwmAPgB1WCH8B1bj1yJv58xu3UIOTolbxHLAIvhbHeIMJLeKeRAN7WCl LUHVRudJPtfnP3SxSs1w14/OTC00ApMVEn71rjyYcPtB1oIsnJEW7CsPvZiHTpIcZN2P tthIQ7aDX95/5G3G4PWgH04PTAbrL13Wx7YtFFnIjJKMpgFRI4TZGZ+44yGUa/PmSLvw WEz8YH3X0u6gqguK6+dOdLhDmaC9SqagRBkJtXX2i+fTElFc5DzW5okkBuZ/Xv0IpAWF /hyAAnmHDShah6upVqmtCxFVP4cYgEFJrBoOeI8shcfLTRMjPmPO98pXnwSWnSJE94tI 0EPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hjzB0Tn+; 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 c24si10299666edw.144.2020.09.22.03.22.07; Tue, 22 Sep 2020 03:22:31 -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=hjzB0Tn+; 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 S1726613AbgIVKU6 (ORCPT + 99 others); Tue, 22 Sep 2020 06:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbgIVKUz (ORCPT ); Tue, 22 Sep 2020 06:20:55 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A897C061755 for ; Tue, 22 Sep 2020 03:20:55 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id k14so11559250pgi.9 for ; Tue, 22 Sep 2020 03:20:55 -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=hjzB0Tn+e1tqlMWN/8vAurHTJovCYlNFo33wzfKzxK/BSxjT+a6gJwTPsGAWYHvvKP CB2S3Yl2oe410H+Hw3kE2nXCgSX6aG+jJYSGohvOw2GJHHl1B7zp7OpWZGvCeqbqcpMm 5uqt259jXkIexa0/jIwZe7+2VbfFZ1SbvoKLQJdafVOHuYhmNNPaOfluHhPC2WekjwUC Q2Fs1o52Og0j0m67TdEoYON34u6yya46oSjJ2dr37J3ATIhymi3Mv841xcRJbEsH9lDF crXaXYA1HRjd6vXEH0WbnrJc06r9bpDNIDWIiI0ZyJ3too8d0TIWR8o+ssEbFgWMu/RD IBKA== 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=BMhU0+olX7mdyTUR8SOhb5SLKywfXS3fVxT2NFXWG/F2XP9Z8hLTxMVEt49LjWu+yi SoTJBDWRnUTq6QlYNLnMNYrQhQDtoVOgWFJCUXydPBmna4Pzc+0T1bl232EW4VIVsP7Z GBTjKyFohRVbbwyYpRrR2Nn88O+RGzmVLlyFILQg+1Mjou6sax4Oh/XcFZS8HSEyq0qw JNDzNxMuGJY4RNqXnT1TZDos0myPOO9w+bQUjUJDZs38kJnVpTdVkJoXMhLS/OsgQR9n ZdRV8bb3VLdI0kJE+xw0SJvIgqZS43X0ra1YO9501EE7CBoStaQZA7eKU2OD1H+NQGgl Y3ww== X-Gm-Message-State: AOAM531udCzqIt24TDniFC7y7dXKOuoHFtmuir6VoGmBlrFIflkDGonC hIaJwXz3WDk2ITbcSLLkQsE= X-Received: by 2002:a17:902:d913:b029:d1:f388:9fa6 with SMTP id c19-20020a170902d913b02900d1f3889fa6mr3938165plz.67.1600770054996; Tue, 22 Sep 2020 03:20:54 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:489:56d9:501b:f524:c013:2733]) by smtp.gmail.com with ESMTPSA id a15sm14859037pfi.119.2020.09.22.03.20.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2020 03:20:54 -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, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Subject: [PATCH v5 04/10] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources Date: Tue, 22 Sep 2020 18:20:12 +0800 Message-Id: <1600770019-11585-5-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600770019-11585-1-git-send-email-gene.chen.richtek@gmail.com> References: <1600770019-11585-1-git-send-email-gene.chen.richtek@gmail.com> 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