]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: mediatek-hw: Refactor match data into struct
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Wed, 16 Jul 2025 17:51:23 +0000 (19:51 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Aug 2025 06:49:02 +0000 (12:19 +0530)
commit2f5178abb9f5164061b9cbbb5dd860f4d206b03a
tree5105482cf3104ccef32a877e584a38eaa4451b98
parent62498af7b1082d76031f98e4c3d6fb2b9af47772
cpufreq: mediatek-hw: Refactor match data into struct

While the driver could get away with having the per-compatible match
data just be an array of the reg offsets, the only thing it used it for
right now, this doesn't really allow it to be extended in any meaningful
way if some other per-variant information needs to be communicated.

In preparation of adding support for hybrid "FDVFS" for MT8196, refactor
the code to make the DT match data a struct, which currently only
contains a single member: the reg offsets. This will allow this struct
to be extended with other members for other hardware variants.

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