PM: QoS: Clean up pm_qos_read_value() and pm_qos_get/set_value()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 22:58:39 +0000 (23:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 10:26:02 +0000 (11:26 +0100)
commitdcd70ca1a3bf33aa5cf53aa6f72b8e51afb1ac48
treeab6baece2a1299fd76abcc7931ca39986ed5d193
parent7b35370b2ebc2608ba0f2e0ecb996fa7f38e9731
PM: QoS: Clean up pm_qos_read_value() and pm_qos_get/set_value()

Move the definition of pm_qos_read_value() before the one of
pm_qos_get_value() and add a kerneldoc comment to it (as it is
not static).

Also replace the BUG() in pm_qos_get_value() with WARN() (to
prevent the kernel from crashing if an unknown PM QoS type is
used by mistake) and drop the comment next to it that is not
necessary any more.

Additionally, drop the unnecessary inline modifier from the header
of pm_qos_set_value().

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