aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-10 18:36:00 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-10 18:36:00 -0500
commit71d821fdaec08afcbfb3cf258c0d64ea0e336ff3 (patch)
tree1c743bfedc41b264fb1dbc4f1383c7e9bf001c93 /drivers/input/touchscreen
parent1a8f83515c1646e134163f0ab310362fae49fcca (diff)
PM / QoS: Add type to dev_pm_qos_add_ancestor_request() arguments
Rework dev_pm_qos_add_ancestor_request() so that device PM QoS type is passed to it as the third argument and make it support the DEV_PM_QOS_LATENCY_TOLERANCE device PM QoS type (in addition to DEV_PM_QOS_RESUME_LATENCY). That will allow the drivers of devices without latency tolerance hardware support to use their ancestors having it as proxies for their latency tolerance requirements. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/st1232.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index 5c342b3139e8..3c0f57efe7b1 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -134,7 +134,8 @@ static irqreturn_t st1232_ts_irq_handler(int irq, void *dev_id)
134 } else if (!ts->low_latency_req.dev) { 134 } else if (!ts->low_latency_req.dev) {
135 /* First contact, request 100 us latency. */ 135 /* First contact, request 100 us latency. */
136 dev_pm_qos_add_ancestor_request(&ts->client->dev, 136 dev_pm_qos_add_ancestor_request(&ts->client->dev,
137 &ts->low_latency_req, 100); 137 &ts->low_latency_req,
138 DEV_PM_QOS_RESUME_LATENCY, 100);
138 } 139 }
139 140
140 /* SYN_REPORT */ 141 /* SYN_REPORT */