PM / Runtime: Rework RPM get callback routines
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 17 Oct 2014 10:58:02 +0000 (12:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Nov 2014 23:49:57 +0000 (00:49 +0100)
commitdbcd2d7253009977d52d6c1cf50e0a2452dee4a8
tree87a8f8519926002d6d48c317da1112762a297a14
parent0df1f2487d2f0d04703f142813d53615d62a1da4
PM / Runtime: Rework RPM get callback routines

PM uses three separate functions to fetch RPM callbacks.
These functions uses quite complicated macro in their body.
The patch replaces these routines with one small macro and
one helper function.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c