PM / QoS: Prepare struct dev_pm_qos_request for more request types

The subsequent patches will use struct dev_pm_qos_request for
representing both latency requests and flags requests.  To make that
easier, put the node member of struct dev_pm_qos_request (under the
name "pnode") into a union called "data" that will represent the
request's  value and list node depending on its type.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: mark gross <markgross@thegnar.org>
This commit is contained in:
Rafael J. Wysocki
2012-10-23 01:09:00 +02:00
parent 5efbe4279f
commit 021c870ba4
3 changed files with 7 additions and 5 deletions

View File

@@ -39,7 +39,9 @@ struct pm_qos_flags_request {
};
struct dev_pm_qos_request {
struct plist_node node;
union {
struct plist_node pnode;
} data;
struct device *dev;
};