ALSA: line6: toneport: Use explicit type for firmware version
authorChris Rorvick <chris@rorvick.com>
Wed, 11 Feb 2015 05:03:17 +0000 (23:03 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2015 09:41:59 +0000 (10:41 +0100)
The firmware version is a single byte so have the variable type agree.
Since the address to this member is passed to the read function, using
an int is not even portable.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/toneport.c

index ddf7368c2001105e142d24c318f9295c2ef5ace1..6d4c50c9b17d87175cac330703ebd2ff0aba4cc9 100644 (file)
@@ -52,7 +52,7 @@ struct usb_line6_toneport {
        u32 serial_number;
 
        /* Firmware version (x 100) */
-       int firmware_version;
+       u8 firmware_version;
 
        /* Timer for delayed PCM startup */
        struct timer_list timer;