From: Matthias Brugger <matthias.bgg@gmail.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
nfraprado@collabora.com, rex-bc.chen@mediatek.com,
zhiyong.tao@mediatek.com
Subject: Re: [PATCH v3 5/5] soc: mediatek: pwrap: Compress of_device_id entries to one line
Date: Tue, 17 May 2022 11:23:20 +0200 [thread overview]
Message-ID: <6917bfeb-2f20-dafd-14e9-2dd0dc42ab91@gmail.com> (raw)
In-Reply-To: <20220516124659.69484-6-angelogioacchino.delregno@collabora.com>
On 16/05/2022 14:46, AngeloGioacchino Del Regno wrote:
> Compress each entry of the of_device_id tables in this driver to one
> line instead of three, as they fit just fine in a single line.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> drivers/soc/mediatek/mtk-pmic-wrap.c | 90 ++++++++--------------------
> 1 file changed, 24 insertions(+), 66 deletions(-)
>
> diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
> index 7d02e1d4faf4..c018092e6cbe 100644
> --- a/drivers/soc/mediatek/mtk-pmic-wrap.c
> +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c
> @@ -1960,33 +1960,17 @@ static const struct pwrap_slv_type pmic_mt6397 = {
> };
>
> static const struct of_device_id of_slave_match_tbl[] = {
> - {
> - .compatible = "mediatek,mt6323",
> - .data = &pmic_mt6323,
> - }, {
> - .compatible = "mediatek,mt6351",
> - .data = &pmic_mt6351,
> - }, {
> - .compatible = "mediatek,mt6357",
> - .data = &pmic_mt6357,
> - }, {
> - .compatible = "mediatek,mt6358",
> - .data = &pmic_mt6358,
> - }, {
> - .compatible = "mediatek,mt6359",
> - .data = &pmic_mt6359,
> - }, {
> - /* The MT6380 PMIC only implements a regulator, so we bind it
> - * directly instead of using a MFD.
> - */
> - .compatible = "mediatek,mt6380-regulator",
> - .data = &pmic_mt6380,
> - }, {
> - .compatible = "mediatek,mt6397",
> - .data = &pmic_mt6397,
> - }, {
> - /* sentinel */
> - }
> + { .compatible = "mediatek,mt6323", .data = &pmic_mt6323 },
> + { .compatible = "mediatek,mt6351", .data = &pmic_mt6351 },
> + { .compatible = "mediatek,mt6357", .data = &pmic_mt6357 },
> + { .compatible = "mediatek,mt6358", .data = &pmic_mt6358 },
> + { .compatible = "mediatek,mt6359", .data = &pmic_mt6359 },
> + /* The MT6380 PMIC only implements a regulator, so we bind it
Nit-pick alert: new line here for readability.
Regards,
Matthias
> + * directly instead of using a MFD.
> + */
> + { .compatible = "mediatek,mt6380-regulator", .data = &pmic_mt6380 },
> + { .compatible = "mediatek,mt6397", .data = &pmic_mt6397 },
> + { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, of_slave_match_tbl);
>
> @@ -2145,45 +2129,19 @@ static struct pmic_wrapper_type pwrap_mt8186 = {
> };
>
> static const struct of_device_id of_pwrap_match_tbl[] = {
> - {
> - .compatible = "mediatek,mt2701-pwrap",
> - .data = &pwrap_mt2701,
> - }, {
> - .compatible = "mediatek,mt6765-pwrap",
> - .data = &pwrap_mt6765,
> - }, {
> - .compatible = "mediatek,mt6779-pwrap",
> - .data = &pwrap_mt6779,
> - }, {
> - .compatible = "mediatek,mt6797-pwrap",
> - .data = &pwrap_mt6797,
> - }, {
> - .compatible = "mediatek,mt6873-pwrap",
> - .data = &pwrap_mt6873,
> - }, {
> - .compatible = "mediatek,mt7622-pwrap",
> - .data = &pwrap_mt7622,
> - }, {
> - .compatible = "mediatek,mt8135-pwrap",
> - .data = &pwrap_mt8135,
> - }, {
> - .compatible = "mediatek,mt8173-pwrap",
> - .data = &pwrap_mt8173,
> - }, {
> - .compatible = "mediatek,mt8183-pwrap",
> - .data = &pwrap_mt8183,
> - }, {
> - .compatible = "mediatek,mt8186-pwrap",
> - .data = &pwrap_mt8186,
> - }, {
> - .compatible = "mediatek,mt8195-pwrap",
> - .data = &pwrap_mt8195,
> - }, {
> - .compatible = "mediatek,mt8516-pwrap",
> - .data = &pwrap_mt8516,
> - }, {
> - /* sentinel */
> - }
> + { .compatible = "mediatek,mt2701-pwrap", .data = &pwrap_mt2701 },
> + { .compatible = "mediatek,mt6765-pwrap", .data = &pwrap_mt6765 },
> + { .compatible = "mediatek,mt6779-pwrap", .data = &pwrap_mt6779 },
> + { .compatible = "mediatek,mt6797-pwrap", .data = &pwrap_mt6797 },
> + { .compatible = "mediatek,mt6873-pwrap", .data = &pwrap_mt6873 },
> + { .compatible = "mediatek,mt7622-pwrap", .data = &pwrap_mt7622 },
> + { .compatible = "mediatek,mt8135-pwrap", .data = &pwrap_mt8135 },
> + { .compatible = "mediatek,mt8173-pwrap", .data = &pwrap_mt8173 },
> + { .compatible = "mediatek,mt8183-pwrap", .data = &pwrap_mt8183 },
> + { .compatible = "mediatek,mt8186-pwrap", .data = &pwrap_mt8186 },
> + { .compatible = "mediatek,mt8195-pwrap", .data = &pwrap_mt8195 },
> + { .compatible = "mediatek,mt8516-pwrap", .data = &pwrap_mt8516 },
> + { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, of_pwrap_match_tbl);
>
prev parent reply other threads:[~2022-05-17 9:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 12:46 [PATCH v3 0/5] MediaTek PMIC Wrap improvements and cleanups AngeloGioacchino Del Regno
2022-05-16 12:46 ` [PATCH v3 1/5] soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function AngeloGioacchino Del Regno
2022-05-17 9:25 ` Matthias Brugger
2022-05-17 9:41 ` AngeloGioacchino Del Regno
2022-05-17 9:44 ` Matthias Brugger
2022-05-16 12:46 ` [PATCH v3 2/5] soc: mediatek: pwrap: Switch to devm_platform_ioremap_resource_byname() AngeloGioacchino Del Regno
2022-05-16 12:46 ` [PATCH v3 3/5] soc: mediatek: pwrap: Move and check return value of platform_get_irq() AngeloGioacchino Del Regno
2022-05-17 9:18 ` Matthias Brugger
2022-05-17 9:34 ` AngeloGioacchino Del Regno
2022-05-17 9:49 ` Matthias Brugger
2022-05-17 10:35 ` AngeloGioacchino Del Regno
2022-05-16 12:46 ` [PATCH v3 4/5] soc: mediatek: pwrap: Move IO pointers to new structure AngeloGioacchino Del Regno
2022-05-16 12:46 ` [PATCH v3 5/5] soc: mediatek: pwrap: Compress of_device_id entries to one line AngeloGioacchino Del Regno
2022-05-17 9:23 ` Matthias Brugger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6917bfeb-2f20-dafd-14e9-2dd0dc42ab91@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nfraprado@collabora.com \
--cc=rex-bc.chen@mediatek.com \
--cc=zhiyong.tao@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox