Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp874414ybh; Mon, 13 Jul 2020 03:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx16/yTNMM6TLVeO+9dOaaMsGqDj/kGF6UC4iRfUQ4Zyf4xG9mDPnaLPl9TfJ841CXKaGkM X-Received: by 2002:aa7:d78b:: with SMTP id s11mr86986536edq.319.1594636766052; Mon, 13 Jul 2020 03:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594636766; cv=none; d=google.com; s=arc-20160816; b=c6/m4Q71++y3OoYH3Zz2TF1+DFjYGWky7vczSCW43zRn5fDGu95suZ0z4O1+r1b3TR tYVNC1UMe7Yhg/8Y1BVO9ZLhEgAUpPKeA622LC+w8PjzfPGfMK3hzUDQD8i5g3acV6uE Wfokfxt2SGtOoGChfNUkZbBsN//FBk8M1BEMCtXcRLCk+3dk/sZZw4lziSi32e9hBp+1 CnGtp/DNVSF2nkrX9CBaGysa0pcGKdXzqSl5ZH/YN6OScmLDKBquhaSPxCtDrCcmktvD x5QqTx/TETNcu31ESFN+AMtMDFbJ+J6CKLzd53jqmZlCSztq0TTMF9fdA39kz6MrqAWC R0mA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zkd7AusD5Iqi8emk4XGpAIzvYnOlGsGXoaeynxJlNps=; b=teggD9WntwosIw67oZppnr+z2KBSgMI1PYN69BMxtGgZs+Y1udBFu7fhLCUnkLn+DH Dyt6brQWVq886zn3C9sIHZUS8FamMhCS8VBrb+2hXycT4nu8BS2EsEE1WJVQ8nQAkjTd gS+hCf6qlgKB1zjNtBwXc1KV/80PobJDusrJtlwEfxByWoNEqpFiUnHvDw7nqrk9BZn1 lefjNGFY58PcezMi1aICJDFlU+jZnMa0QkVGlrSI67t1keScyo8mZN56Rsr2e0V4KY5i x3e3cc0cXxt21W7E5SAaoFiRiS3M/x1XcmK9niZsi3RHPmo+G5HXTLIVUPJ3yi90UFLa iSxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e+ds4Mxu; 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 cw28si9364003edb.424.2020.07.13.03.39.01; Mon, 13 Jul 2020 03:39: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=e+ds4Mxu; 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 S1729518AbgGMKfp (ORCPT + 99 others); Mon, 13 Jul 2020 06:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgGMKfp (ORCPT ); Mon, 13 Jul 2020 06:35:45 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C19C061755 for ; Mon, 13 Jul 2020 03:35:45 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id k23so12833748iom.10 for ; Mon, 13 Jul 2020 03:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zkd7AusD5Iqi8emk4XGpAIzvYnOlGsGXoaeynxJlNps=; b=e+ds4Mxu02ZFxQAYVNOw7TqENK6NWoaPkZJ15GsOh6O8+qF/2/IJdeL+TkFXUDfabx MdmX8Y29Ljpzf7o42/z88a87iCOrAlwbwT9raV+Vk/b1FtIiFPvM75tVAQ5hRHxZC5Xs x+DcYR4yZzlNozDzLblRRiJ1/IBVLe8BJ1F25p/qHDgnfKOuWYMKAhwvPoaqRb/Uv8qy Aw7AHkdJaol8wmK2jCh+TCQ6AwqEMxK8PHvv4isbIpHrp0HJsV8o1jzpzwaY642WNrn6 WGH6B2Hi1tlaV7nor1zz9hHmwAfQZp+NnQcR0AW0wYUaa2y8GdQXW/BsK3WbNoxCKoge aCxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zkd7AusD5Iqi8emk4XGpAIzvYnOlGsGXoaeynxJlNps=; b=GZq+PQxaLZBFajfY4d0JgBjHde6wnYZPdh0Dzxnm8li+sjne0VmLI4c33/WMNLbvlw O/DWYTCEhCA4z0fXT/yTLRbeymzB8SZiQEZlrlNBSyavM2/47aCKCvnT026D3C5bvxAF R3m94V+X4H6zdQ/XxaA+54c+Op9otr68nyXiBWfHifQFFTE7gj8jZNf+TzUb+9re9PKl Aev5H2jl8xNu4hRTIrHmR27LaufJNefvIfnl3y4zXpojuQH1GzZLJd8BWcSDM7VReGnN 9I53csXHHe7WpbqNih8FO7IydhyT9ZrHzbCAw2IJQIXKyVDD2p8FTgU+M/7HReoNb8jM 9kYw== X-Gm-Message-State: AOAM533O2TwqGLiHizlfM+0ftVJUyg6CGvkrxsEtnmEV/Q0aLs0jUNrs CLl4sZ027i1F7Xyl0iTrbvJyrGOKo4zyoqgu5AY= X-Received: by 2002:a5d:8f0b:: with SMTP id f11mr59878361iof.200.1594636544674; Mon, 13 Jul 2020 03:35:44 -0700 (PDT) MIME-Version: 1.0 References: <1594117856-14343-1-git-send-email-gene.chen.richtek@gmail.com> <1594117856-14343-2-git-send-email-gene.chen.richtek@gmail.com> <20200713065110.GB3500@dell> In-Reply-To: <20200713065110.GB3500@dell> From: Gene Chen Date: Mon, 13 Jul 2020 18:35:32 +0800 Message-ID: Subject: Re: [PATCH 1/4] mfd: mt6360: Refactor and fix code style To: Lee Jones Cc: Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Gene Chen , shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lee Jones =E6=96=BC 2020=E5=B9=B47=E6=9C=8813=E6=97= =A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=882:51=E5=AF=AB=E9=81=93=EF=BC=9A > > On Fri, 10 Jul 2020, Matthias Brugger wrote: > > > > > > > On 07/07/2020 12:30, Gene Chen wrote: > > > From: Gene Chen > > > > > > Rearrange include file. > > > Remove brackets around raw numbers. > > > Indicate sub-dev compatible name by using "-" > > > Combine mt6360 pmic/ldo resouces into mt6360 regulator resources. > > > Rename mt6360_pmu_data by mt6360_data. > > > Rename mt6360_pmu by mt6360. > > > > That seems like a lot of cosmetics. Why is this needed? > > If you think that's needed it should be split up in different commits, = each > > explaining in the commit message why you do that. > > Agreed. This set is still not broken up enough. > > Please place each logical change into its own patch for review. > 1. Rearrange include file. After check serveral file about coding style, include file seems sort by architecture, not by alphabet 2. Remove brackets around raw numbers. Due to redundant brackets, another reviewer recommended to delete them. 3. Indicate sub-dev compatible name by using "-" Suggestion by Lees when review mfd binding document. 4. Combine mt6360 pmic/ldo resouces into mt6360 regulator resources. Simplify the similar resources object. 5. Rename mt6360_pmu_data by mt6360_data. Not only include pmu part, but also entire MT6360 IC. 6. Rename mt6360_pmu by mt6360. Same reason as above. We try to make code more simpler and easier to understand We can also discard changes if patch 1,2,4,5,6 doesn't make any difference. > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Senior Technical Lead - Developer Services > Linaro.org =E2=94=82 Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog