* [PATCH V2] input synaptics-rmi4: Fix ms calculation in poll interval
@ 2013-12-06 0:13 Christopher Heiny
2013-12-09 18:53 ` Benjamin Tissoires
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Heiny @ 2013-12-06 0:13 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Linux Input, Christopher Heiny, Andrew Duggan, Vincent Huang,
Vivian Ly, Daniel Rosenberg, Jean Delvare, Joerie de Gram,
Linus Walleij, Benjamin Tissoires
[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.
Signed-off-by: Christopher Heiny <cheiny@synaptics.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Cc: Joerie de Gram <j.de.gram@gmail.com>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
drivers/input/rmi4/rmi_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 9af297e..dffbfa0 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -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. */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] input synaptics-rmi4: Fix ms calculation in poll interval
2013-12-06 0:13 [PATCH V2] input synaptics-rmi4: Fix ms calculation in poll interval Christopher Heiny
@ 2013-12-09 18:53 ` Benjamin Tissoires
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Tissoires @ 2013-12-09 18:53 UTC (permalink / raw)
To: Christopher Heiny, Dmitry Torokhov
Cc: Linux Input, Andrew Duggan, Vincent Huang, Vivian Ly,
Daniel Rosenberg, Jean Delvare, Joerie de Gram, Linus Walleij
On 05/12/13 19:13, Christopher Heiny wrote:
> [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.
>
> Signed-off-by: Christopher Heiny <cheiny@synaptics.com>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: Jean Delvare <khali@linux-fr.org>
> Cc: Linus Walleij <linus.walleij@stericsson.com>
> Cc: Joerie de Gram <j.de.gram@gmail.com>
> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cheers,
Benjamin
> ---
> drivers/input/rmi4/rmi_driver.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
> index 9af297e..dffbfa0 100644
> --- a/drivers/input/rmi4/rmi_driver.c
> +++ b/drivers/input/rmi4/rmi_driver.c
> @@ -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. */
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-09 18:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 0:13 [PATCH V2] input synaptics-rmi4: Fix ms calculation in poll interval Christopher Heiny
2013-12-09 18:53 ` Benjamin Tissoires
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).