ALSA: line6: Drop superfluous timer helper function
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 13:56:29 +0000 (15:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 May 2019 06:59:27 +0000 (08:59 +0200)
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 <tiwai@suse.de>
sound/usb/line6/driver.c
sound/usb/line6/driver.h

index 2b57854335b3ba93c4c1e9ae551f291b97ab2002..79e96b269411dcc6474dc087156e504b38fc64b0 100644 (file)
@@ -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.
 */
index 650d909c9c4ff86a41a4a61f4cd7528e1748514d..4eb66cdf1ece8de75af1dac49b70f05596fafb01 100644 (file)
 
 #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;
@@ -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);