From: Chris Rorvick <chris@rorvick.com>
Date: Wed, 11 Feb 2015 05:03:17 +0000 (-0600)
Subject: ALSA: line6: toneport: Use explicit type for firmware version
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0e806151e86be52caa1349fa490eab8f09a2b6f5;p=linux.git

ALSA: line6: toneport: Use explicit type for firmware version

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>
---

diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c
index ddf7368c20011..6d4c50c9b17d8 100644
--- a/sound/usb/line6/toneport.c
+++ b/sound/usb/line6/toneport.c
@@ -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;