[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221228075016.12309-1-miles.chen@mediatek.com>
Date: Wed, 28 Dec 2022 15:50:16 +0800
From: Miles Chen <miles.chen@...iatek.com>
To: <angelogioacchino.delregno@...labora.com>
CC: <chun-jie.chen@...iatek.com>, <daniel@...rotopia.org>,
<devicetree@...r.kernel.org>, <fparent@...libre.com>,
<ikjn@...omium.org>, <johnson.wang@...iatek.com>,
<jose.exposito89@...il.com>, <kernel@...labora.com>,
<krzysztof.kozlowski+dt@...aro.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-clk@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>, <matthias.bgg@...il.com>,
<miles.chen@...iatek.com>, <msp@...libre.com>,
<mturquette@...libre.com>, <nfraprado@...labora.com>,
<pablo.sun@...iatek.com>, <rex-bc.chen@...iatek.com>,
<robh+dt@...nel.org>, <ryder.lee@...nel.org>,
<sam.shih@...iatek.com>, <sboyd@...nel.org>,
<weiyi.lu@...iatek.com>, <wenst@...omium.org>,
<y.oudjana@...tonmail.com>, <yangyingliang@...wei.com>
Subject: Re: [PATCH v2 11/23] clk: mediatek: Switch to mtk_clk_simple_probe() where possible
> mtk_clk_simple_probe() is a function that registers mtk gate clocks
> and, if reset data is present, a reset controller and across all of
> the MTK clock drivers, such a function is duplicated many times:
> switch to the common mtk_clk_simple_probe() function for all of the
> clock drivers that are registering as platform drivers.
>
...snip...
> +
> +static const struct of_device_id of_match_clk_mt8183_simple[] = {
> + { .compatible = "mediatek,mt8183-infracfg", .data = &infra_desc },
> + { .compatible = "mediatek,mt8183-pericfg", .data = &peri_desc, },
> + { /* sentinel */ }
> +};
> +
> +static struct platform_driver clk_mt8183_simple_drv = {
> + .probe = mtk_clk_simple_probe,
> + .remove = mtk_clk_simple_remove,
> + .driver = {
> + .name = "clk-mt8183-simple",
> + .of_match_table = of_match_clk_mt8183_simple,
> + },
>
cool, replace clk_mt8183_infra_probe and clk_mt8183_peri_probe with
mtk_clk_simple_probe
Reviewed-by: Miles Chen <miles.chen@...iatek.com>
Powered by blists - more mailing lists