staging: line6: adjusted interface of line6_send_program()
authorJohannes Thumshirn <morbidrsa@googlemail.com>
Wed, 27 Jun 2012 19:25:58 +0000 (21:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 23:12:45 +0000 (16:12 -0700)
Adjusted interface of line6_send_program() to clarify internal working

Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/driver.c
drivers/staging/line6/driver.h

index d86123041194b2771af35d39264c6115a04da8fc..b8358ca71bdd33e4a1280ca92af45c32253ba4e5 100644 (file)
@@ -490,7 +490,7 @@ static void line6_data_received(struct urb *urb)
 /*
        Send channel number (i.e., switch to a different sound).
 */
-int line6_send_program(struct usb_line6 *line6, int value)
+int line6_send_program(struct usb_line6 *line6, u8 value)
 {
        int retval;
        unsigned char *buffer;
index 140ccfe0815dd98b87e981a7192d7b1a72f30adf..a3029eb223d6f9a0c6e5e4df01d171b951d779d1 100644 (file)
@@ -209,7 +209,7 @@ extern int line6_read_data(struct usb_line6 *line6, int address, void *data,
                           size_t datalen);
 extern int line6_read_serial_number(struct usb_line6 *line6,
                                    int *serial_number);
-extern int line6_send_program(struct usb_line6 *line6, int value);
+extern int line6_send_program(struct usb_line6 *line6, u8 value);
 extern int line6_send_raw_message(struct usb_line6 *line6, const char *buffer,
                                  int size);
 extern int line6_send_raw_message_async(struct usb_line6 *line6,