Răsfoiți Sursa

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 ani în urmă
părinte
comite
0e806151e8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;