clk: mediatek: use correct struct type for infrasys clocks

Fix the private data type struct type in a couple of infrasys clock
functions.

struct mtk_cg_priv is a superset of struct mtk_clk_priv and has the same
layout at the beginning so there was no compile errors or runtime bugs.
This could only be found by inspecting the code.

Reviewed-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260303-mtk-mt8189-clocks-v4-1-ee85f8dd2f0d@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
David Lechner
2026-03-17 16:34:27 -05:00
parent 4f821825c8
commit 5d24726581
+2 -2
View File
@@ -933,7 +933,7 @@ static const int mtk_infrasys_of_xlate(struct clk *clk,
static int mtk_clk_infrasys_enable(struct clk *clk)
{
struct mtk_cg_priv *priv = dev_get_priv(clk->dev);
struct mtk_clk_priv *priv = dev_get_priv(clk->dev);
const struct mtk_gate *gate;
/* MUX handling */
@@ -946,7 +946,7 @@ static int mtk_clk_infrasys_enable(struct clk *clk)
static int mtk_clk_infrasys_disable(struct clk *clk)
{
struct mtk_cg_priv *priv = dev_get_priv(clk->dev);
struct mtk_clk_priv *priv = dev_get_priv(clk->dev);
const struct mtk_gate *gate;
/* MUX handling */