From: Chris Rorvick Date: Wed, 11 Feb 2015 05:03:17 +0000 (-0600) Subject: ALSA: line6: toneport: Use explicit type for firmware version X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e806151e86be52caa1349fa490eab8f09a2b6f5;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index ddf7368c2001..6d4c50c9b17d 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;