diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-02-09 09:41:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-07 03:13:08 +0100 |
commit | c89b73703ea3e61ab233560d2c6c4fc0963111dc (patch) | |
tree | c1449d5d636d0f7c0bbbb76b9f1d6f37d19b82e0 /drivers/tty | |
parent | 4f86a95d75386b47178335599264a000601e01ed (diff) | |
download | op-kernel-dev-c89b73703ea3e61ab233560d2c6c4fc0963111dc.zip op-kernel-dev-c89b73703ea3e61ab233560d2c6c4fc0963111dc.tar.gz |
tty: max3100: use msecs_to_jiffies for time conversion
This is only an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var).
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/max3100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index 79f9a9e..0773772 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c @@ -782,7 +782,7 @@ static int max3100_probe(struct spi_device *spi) pdata = dev_get_platdata(&spi->dev); max3100s[i]->crystal = pdata->crystal; max3100s[i]->loopback = pdata->loopback; - max3100s[i]->poll_time = pdata->poll_time * HZ / 1000; + max3100s[i]->poll_time = msecs_to_jiffies(pdata->poll_time); if (pdata->poll_time > 0 && max3100s[i]->poll_time == 0) max3100s[i]->poll_time = 1; max3100s[i]->max3100_hw_suspend = pdata->max3100_hw_suspend; |