Skip to content

Commit

Permalink
ALSA: line6: fixup of line6_start_timer argument type
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Nicholas Mc Guire authored and tiwai committed Feb 3, 2015
1 parent 695758c commit 6ccd93b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/usb/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sound/usb/line6/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ccd93b

Please sign in to comment.