Skip to content

Commit

Permalink
ALSA: line6: Drop superfluous timer helper function
Browse files Browse the repository at this point in the history
Now all timer usages in line6 drivers are gone, we can get rid of some
helper macro and function that became superfluous.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed May 28, 2019
1 parent 6ea5339 commit be8fd48
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions sound/usb/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,6 @@ static int line6_send_raw_message_async_part(struct message *msg,
return retval;
}

/*
Setup and start timer.
*/
void line6_start_timer(struct timer_list *timer, unsigned long msecs,
void (*function)(struct timer_list *t))
{
timer->function = function;
mod_timer(timer, jiffies + msecs_to_jiffies(msecs));
}
EXPORT_SYMBOL_GPL(line6_start_timer);

/*
Asynchronously send raw message.
*/
Expand Down
9 changes: 0 additions & 9 deletions sound/usb/line6/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@

#define LINE6_CHANNEL_MASK 0x0f

#define CHECK_STARTUP_PROGRESS(x, n) \
do { \
if ((x) >= (n)) \
return; \
x = (n); \
} while (0)

extern const unsigned char line6_midi_id[3];

static const int SYSEX_DATA_OFS = sizeof(line6_midi_id) + 3;
Expand Down Expand Up @@ -201,8 +194,6 @@ 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 long msecs,
void (*function)(struct timer_list *t));
extern int line6_version_request_async(struct usb_line6 *line6);
extern int line6_write_data(struct usb_line6 *line6, unsigned address,
void *data, unsigned datalen);
Expand Down

0 comments on commit be8fd48

Please sign in to comment.