Re: [PATCH v2 3/4] cpufreq: mediatek-hw: Separate per-domain and per-instance data

From: AngeloGioacchino Del Regno
Date: Mon Jul 14 2025 - 10:43:04 EST


Il 14/07/25 16:08, Nicolas Frattaroli ha scritto:
As it stood, the mediatek cpufreq driver could get away with never
really having a private driver instance struct. This is because all data
was stored in the per-domain structs.

However, this complicates matters when actual per-instance data like the
variant struct is introduced. Instead of having a pointer to it for
every domain, have a pointer to a global "priv" struct that can be
extended over time, and rename the "data" struct to "domain" to
distinguish its purpose better.

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

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