]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: arm_big_little: make function arguments and structure pointer const
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 19 Oct 2017 10:59:14 +0000 (12:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 22:22:19 +0000 (23:22 +0100)
commitb080b44923972c4e9ee122dab385d040c0aa45a4
tree6f4808e545060ad762803204b7e1cc96733f0fda
parent487089cc46800ac7fcc5e5ae2990e1828d07f4f7
cpufreq: arm_big_little: make function arguments and structure pointer const

Make the arguments of functions bL_cpufreq_{register/unregister} as
const as the ops pointer does not modify the fields of the
cpufreq_arm_bL_ops structure it points to. The pointer arm_bL_ops is
also getting initialized with ops but the pointer does not modify the
fields. So, make the function argument and the structure pointer const.
Add const to function prototypes too.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/arm_big_little.c
drivers/cpufreq/arm_big_little.h