summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-02-03 02:38:39 -0500
committerTakashi Iwai <tiwai@suse.de>2015-02-03 09:43:55 +0100
commit695758c6c4d67955f7d73bc9fd39288acfd4b222 (patch)
treecfaf89de802980dff82dea60217c5a582154fcac /sound/usb
parent58647286abcd2b7ca940b33cc0817443b8851f36 (diff)
ALSA: line6: use msecs_to_jiffies for 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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/line6/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index 2328ec9a1ca8..3cf12ccdd72e 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -166,7 +166,7 @@ void line6_start_timer(struct timer_list *timer, unsigned int msecs,
void (*function)(unsigned long), unsigned long data)
{
setup_timer(timer, function, data);
- mod_timer(timer, jiffies + msecs * HZ / 1000);
+ mod_timer(timer, jiffies + msecs_to_jiffies(msecs));
}
EXPORT_SYMBOL_GPL(line6_start_timer);