summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorZihuan Zhang <zhangzihuan@kylinos.cn>2025-09-02 10:33:23 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-09-05 21:16:55 +0300
commit97248d05b70edc674f2f2fa835fed33172686b1d (patch)
treed40e9975d6b74625a6a750aec235968efaca218c /net/switchdev/switchdev.c
parentc69d79c532f26807cb1f424f6cec475609dd2ded (diff)
downloadlinux-97248d05b70edc674f2f2fa835fed33172686b1d.tar.xz
cpufreq: Drop redundant freq_table parameter
Since commit e0b3165ba521 ("cpufreq: add 'freq_table' in struct cpufreq_policy"), freq_table has been stored in struct cpufreq_policy instead of being maintained separately. However, several helpers in freq_table.c still take both policy and freq_table as parameters, even though policy->freq_table can always be used. This leads to redundant function arguments and increases the chance of inconsistencies. This patch removes the unnecessary freq_table argument from these functions and updates their callers to only pass policy. This makes the code simpler, more consistent, and avoids duplication. Signed-off-by: Zihuan Zhang <zhangzihuan@kylinos.cn> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://patch.msgid.link/20250902073323.48330-1-zhangzihuan@kylinos.cn Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions