Prechádzať zdrojové kódy

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>
Chris Rorvick 10 rokov pred
rodič
commit
0e806151e8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      sound/usb/line6/toneport.c

+ 1 - 1
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;