Skip to contentSkip to conversation

input synaptics-rmi4: Fix ms calculation in poll interval

PATCH In review Christopher Heiny 2 participants 2 messages Dec 6, 2013 – Dec 9, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 input synaptics-rmi4: Fix ms calculation in poll interval

[Previous patch re-used an old template for the subject line. Sorry about that]

This patch implements changes to the synaptics-rmi4 branch of Dmitry's input tree. The base for the patch is commit 8ca01dc61a42b6f7bcba052a8c084000f7057a34.

Fix computation of poll interval milliseconds.

Cc Dmitry Torokhov <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Joerie de Gram <[email protected]>
Cc Benjamin Tissoires <[email protected]>
---
 drivers/input/rmi4/rmi_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/rmi4/rmi_driver.c +1 -1
index 9af297e..dffbfa0 100644
@@ -934,7 +934,7 @@ static int rmi_driver_probe(struct device *dev)
 	} else
 		data->poll_interval = ktime_set(0,
 			(pdata->poll_interval_ms ? pdata->poll_interval_ms :
-			DEFAULT_POLL_INTERVAL_MS) * 1000);
+			DEFAULT_POLL_INTERVAL_MS) * 1000 * 1000);
 
 	if (data->f01_container->dev.driver) {
 		/* Driver already bound, so enable ATTN now. */
Reviewed-by on v2 1/1
#1 lore raw
Quoted 6 lines · Christopher Heiny

[Previous patch re-used an old template for the subject line. Sorry about that]

This patch implements changes to the synaptics-rmi4 branch of Dmitry's input tree. The base for the patch is commit 8ca01dc61a42b6f7bcba052a8c084000f7057a34.

Quoted 9 lines

Fix computation of poll interval milliseconds.

Cc Dmitry Torokhov <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Joerie de Gram <[email protected]>
Cc Benjamin Tissoires <[email protected]>

Cheers,
Benjamin

Quoted 18 lines
---
 drivers/input/rmi4/rmi_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/rmi4/rmi_driver.c +1 -1
index 9af297e..dffbfa0 100644
@@ -934,7 +934,7 @@ static int rmi_driver_probe(struct device *dev)
 	} else
 		data->poll_interval = ktime_set(0,
 			(pdata->poll_interval_ms ? pdata->poll_interval_ms :
-			DEFAULT_POLL_INTERVAL_MS) * 1000);
+			DEFAULT_POLL_INTERVAL_MS) * 1000 * 1000);
 
 	if (data->f01_container->dev.driver) {
 		/* Driver already bound, so enable ATTN now. */