[PATCH v2 2/5] clk: mediatek: Refactor pll registration to pass device

Chen-Yu Tsai wenst at chromium.org
Thu Oct 9 00:09:47 PDT 2025


On Thu, Oct 9, 2025 at 12:06 AM Nicolas Frattaroli
<nicolas.frattaroli at collabora.com> wrote:
>
> As it stands, mtk_clk_register_plls takes a struct device_node pointer
> as its first argument. This is a tragic happenstance, as it's trivial to
> get the device_node from a struct device, but the opposite not so much.
> The struct device is a much more useful thing to have passed down.
>
> Refactor mtk_clk_register_plls to take a struct device pointer instead
> of a struct device_node pointer, and fix up all users of this function.
>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>

Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>

Thank you for taking up this task!



More information about the linux-arm-kernel mailing list