ALSA: line6: fixup of line6_start_timer argument type
authorNicholas Mc Guire <hofrat@osadl.org>
Tue, 3 Feb 2015 07:38:56 +0000 (02:38 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Feb 2015 08:44:04 +0000 (09:44 +0100)
line6_start_timer passes an unsigned int as argument to be used in mod_timer
which is then used by mod_timer as unsigned long, this just fixes up the
argument type. This change helps make static code checkers happy.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c
sound/usb/line6/driver.h

index 3cf12ccdd72e2107069d811b100ef6bbf8dcd2fa..e2a2603a1ca39d57b801379d43d89ec5efbf83c0 100644 (file)
@@ -162,7 +162,7 @@ static int line6_send_raw_message_async_part(struct message *msg,
 /*
        Setup and start timer.
 */
-void line6_start_timer(struct timer_list *timer, unsigned int msecs,
+void line6_start_timer(struct timer_list *timer, unsigned long msecs,
                       void (*function)(unsigned long), unsigned long data)
 {
        setup_timer(timer, function, data);
index fa877a3458608d9e183cb151a40b656a93963dd4..2276b78f35629545504fffcaf400c06a0392c782 100644 (file)
@@ -159,7 +159,7 @@ extern int line6_send_sysex_message(struct usb_line6 *line6,
                                    const char *buffer, int size);
 extern ssize_t line6_set_raw(struct device *dev, struct device_attribute *attr,
                             const char *buf, size_t count);
-extern void line6_start_timer(struct timer_list *timer, unsigned int msecs,
+extern void line6_start_timer(struct timer_list *timer, unsigned long msecs,
                              void (*function)(unsigned long),
                              unsigned long data);
 extern int line6_version_request_async(struct usb_line6 *line6);