]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: mediatek-hw: Separate per-domain and per-instance data
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Wed, 16 Jul 2025 17:51:24 +0000 (19:51 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Aug 2025 06:49:02 +0000 (12:19 +0530)
commit35eb6b78854d2e9671ce8ee6b735aa0114c48da8
treedef0b01ad30c523ab3457906d228dba49ccceaf7
parent2f5178abb9f5164061b9cbbb5dd860f4d206b03a
cpufreq: mediatek-hw: Separate per-domain and per-instance data

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.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq-hw.c