Re: [PATCH 1/4] mfd: mt6360: Refactor and fix code style
flat view
From: Gene Chen <hidden>
Date: 2020-07-13 10:35:47
Also in:
linux-arm-kernel, lkml
Lee Jones [off-list ref] 於 2020年7月13日 週一 下午2:51寫道:
On Fri, 10 Jul 2020, Matthias Brugger wrote:quoted
On 07/07/2020 12:30, Gene Chen wrote:quoted
From: Gene Chen <redacted> 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 [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
_______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek