cpufreq: governor: Drop the gov pointer from struct dbs_data
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 7 Feb 2016 15:09:51 +0000 (16:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:40:55 +0000 (14:40 +0100)
commitea59ee0dc9796a4e879291cc2f4728d04c499313
tree6081a8d25c06d43d940280cd2249cb79d3b30524
parent906a6e5aaef24d3c80bf6a06c794c7541aca64be
cpufreq: governor: Drop the gov pointer from struct dbs_data

Since it is possible to obtain a pointer to struct dbs_governor
from a pointer to the struct governor embedded in it with the help
of container_of(), the additional gov pointer in struct dbs_data
isn't really necessary.

Drop that pointer and make the code using it reach the dbs_governor
object via policy->governor.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/amd_freq_sensitivity.c
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.c