Re: [PATCH 2/4] clk: mediatek: Refactor pll registration to pass device

From: AngeloGioacchino Del Regno
Date: Wed Oct 01 2025 - 07:43:41 EST


Il 29/09/25 14:13, Nicolas Frattaroli ha scritto:
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.
This will allow us to extend clk-pll with runtime PM things later.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx>

Thanks for doing that - this exact thing has been in my backlog for a
very long time now, and you've done it before I could, and without even
knowing that this was in my plans.

Perfect.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>