diff mbox

[6/6] ALSA: line6: toneport: Use explicit type for firmware version

Message ID 1423630997-25464-7-git-send-email-chris@rorvick.com (mailing list archive)
State Accepted
Commit 0e806151e86be52caa1349fa490eab8f09a2b6f5
Headers show

Commit Message

Chris Rorvick Feb. 11, 2015, 5:03 a.m. UTC
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>
---
 sound/usb/line6/toneport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Feb. 11, 2015, 9:43 a.m. UTC | #1
At Tue, 10 Feb 2015 23:03:17 -0600,
Chris Rorvick wrote:
> 
> 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>

Applied, thanks.


Takashi

> ---
>  sound/usb/line6/toneport.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c
> index ddf7368..6d4c50c 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;
> -- 
> 2.1.0
>
diff mbox

Patch

diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c
index ddf7368..6d4c50c 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;