ALSA: bebob: use correct type for __be32 data
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 18 Oct 2015 13:39:52 +0000 (22:39 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Oct 2015 09:57:03 +0000 (11:57 +0200)
commitfef586d58960bc867c1fa8126ee5d7364a5a89ac
tree1d662b989705f706eeb917350a83131ca9b9f5ad
parent463543ac2effaeb2b524f0a0a92f2413c23998ca
ALSA: bebob: use correct type for __be32 data

In former commit, metering is supported for BeBoB based models
customized by M-Audio. The data in transaction is aligned to
big-endianness, while in the driver code u16 typed variable is assigned
to the data. This causes sparse warnings.

bebob_maudio.c:651:31: warning: cast to restricted __be16
bebob_maudio.c:651:31: warning: cast to restricted __be16
bebob_maudio.c:651:31: warning: cast to restricted __be16
bebob_maudio.c:651:31: warning: cast to restricted __be16

This commit fixes this bug by using __be16 variable for the data.

Fixes: 3149ac489ff8('ALSA: bebob: Add support for M-Audio special Firewire series')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_maudio.c