Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp963997ybg; Mon, 27 Jul 2020 04:30:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAZkl7cUW1VQBxP7tkxi/mdKoyx5YkOjPw2TWOUNNmwZLgap8WedSQ2NBFYV3zxIMoBiph X-Received: by 2002:a17:906:b2d2:: with SMTP id cf18mr8812537ejb.551.1595849424837; Mon, 27 Jul 2020 04:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595849424; cv=none; d=google.com; s=arc-20160816; b=wkbM9lgAilcHEUK4FAig3QdAyw3zjqAumAJ542Tdus0kXdxtPXrcAJikZORHZbqop0 9wQTLkSrWPQtI+KmeRdmTQJk0HpSMLjmb+4YmP9b/CBETnO70U5kW4puYa1V8sA1+ubQ rKOyQ2QQ8iXhIcpgkFDi8Ge02jiijnoPhyneUuBM4GbfBLAvJbtCPsAM0ICxidHwB7JX rpI8m8jhcRtNIL7XzA75sBIZt4BlX9yUtOXaQoI47rIOuWz0TrLMsDy8Is2a2NM6Jvbz ar0rZTDDoy5lesxkYXCVtb23OZFgeJYKja/W+zjBu1q4Ogml5HWcMObdLA2p+3fZSFj1 vsDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EKtNZF82mH4EnUTfOug/S5EqMmxmydLS/o7zuPsZsAg=; b=K2/hLR6y8iMkQo0PwBiDkEAG44PAq4voYHXtlpzFZvAulo5XisnaeiE4HEQLFpVAx2 FwP00T+mk0TkxAbSZ9zl7yb3IU0Amvs+TecaArD0V8GrTc5XnUHkW4BVzt9YIYftUjmq Jh625qaFk5CxYyi8eJDvZxTtXVpSHmi9mI4uuMk1jN4HOa5Hhuu42I2QJqQXiDh00quc R/lTxx5Q6Lxqg0jDY3UQR2q0Ay+Fe4hQc2wBhw84ci+s2V6DjHbxS/G0ImmKaqezXtqH FW9/Q2315HnGIA7PqDiYTlSewKHHdk1gEjlA1LXPtzYS3cBjqnGNNXD32+VMf408xIFj zXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqr9f9v9; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d92si5345893edd.183.2020.07.27.04.30.02; Mon, 27 Jul 2020 04:30:24 -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=@linaro.org header.s=google header.b=oqr9f9v9; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbgG0L31 (ORCPT + 99 others); Mon, 27 Jul 2020 07:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbgG0L30 (ORCPT ); Mon, 27 Jul 2020 07:29:26 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43ECDC061794 for ; Mon, 27 Jul 2020 04:29:25 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 184so14399074wmb.0 for ; Mon, 27 Jul 2020 04:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=EKtNZF82mH4EnUTfOug/S5EqMmxmydLS/o7zuPsZsAg=; b=oqr9f9v9ib3ir2dTayTCoS6+B/x4vLofP7/ciW3dY1I6LcRa6FGyYqAoyRJIG76GE1 oH8PB5k8BDapkVVfjFdS7CRSVr2DK7Of3iLXi+PCpcml3vbAKZPCq+LBrWNh+Jz7Bbcu d2yS/viPCeYaH8BH8Lge/c9ZRzatFiidYJsjLR9vyV+r+aytOenZou+60oe3Mrj3CSmO oe2ynIo6sqDPh4v09oVYqlM6xv6gxkbOBLbUUiEbRjr5L7QE6hqL9Ynaap5V/UJQsMkm 66rh7TkFOWTm0S7wEsShM6qqdIV8pxrUBlCm6+8tFPPscrNtZZk6pz6IEHQXDjEB0Zx5 4Brw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=EKtNZF82mH4EnUTfOug/S5EqMmxmydLS/o7zuPsZsAg=; b=ujwjDJL3D1j1ndHTJQofUVpetGMF3FAWRNwWD4ns9Q7fudlBuaxisrWJsqJA/9PGcQ ofhJ1kbkm73rYbmB+DrFnBdFe4BzV0c4w2erymnpNFcFzKzkYxm+v3Y3xbyLxYBA7z6K wyMInn7hWYTTe1MseKwKI4kbwOX4mkRrDVA76kv4YiDualDhH4pRNWpdJaxBa+DkHpj8 1dvJtB6yW+hqcSm5Jz7MLou3vFyyCJeIaG4PW0JrS6e0av7g5d45FKDSadiuOLbvMMGO eammw7cUoRjh/qmIsUPFFgV++y14jvg8KjtDNh3fQzkN48SldtBPvy7QrSDnDMOeQ2ju m2Zg== X-Gm-Message-State: AOAM532rx/mORbxchZbWirEmoyHsB8VHema+qayOa2EGROytloCFgar0 kM1gAiuTEP33lkr1XMUZ1pWmEA== X-Received: by 2002:a1c:7204:: with SMTP id n4mr4687818wmc.161.1595849363913; Mon, 27 Jul 2020 04:29:23 -0700 (PDT) Received: from dell ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id k131sm19041738wmb.36.2020.07.27.04.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 04:29:23 -0700 (PDT) Date: Mon, 27 Jul 2020 12:29:21 +0100 From: Lee Jones To: Gene Chen Cc: matthias.bgg@gmail.com, 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: Re: [PATCH v2 4/9] mfd: mt6360: Combine mt6360 pmic/ldo resouces into mt6360 regulator resources Message-ID: <20200727112921.GK1850026@dell> References: <1594983811-25908-1-git-send-email-gene.chen.richtek@gmail.com> <1594983811-25908-5-git-send-email-gene.chen.richtek@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1594983811-25908-5-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 On Fri, 17 Jul 2020, Gene Chen wrote: > From: Gene Chen > > Combine mt6360 pmic/ldo resouces into mt6360 regulator resources > to simplify the similar resources object. Do the sub-devices actually share these resources, or are you doing this just to make the code simpler? > 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 7cc1b59..665e26f 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"), > }; -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog