PM: QoS: Clean up misc device file operations
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 23:00:12 +0000 (00:00 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 10:26:13 +0000 (11:26 +0100)
commit299a229830a29a2d691ac17b27964c7d820f16a6
tree8b87292595df419b6b8efc035fe690e5f8249a38
parent63cffc05348ea1fe65aa99e80ed330e33bf54220
PM: QoS: Clean up misc device file operations

Reorder the code to avoid using extra function header declarations
for the pm_qos_power_*() family of functions and drop those
declarations.

Also clean up the internals of those functions to consolidate checks,
avoid using redundant local variables and similar.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
kernel/power/qos.c