summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-10-18 22:39:51 +0900
committerLuis Henriques <luis.henriques@canonical.com>2015-12-13 17:49:36 +0000
commita4a98b714e64e290f95ed92920395c730e554816 (patch)
tree4bc12337acde2d7929b251694bb08a653843f409
parent4c632181fe780ba38071b5eb85438c5ea66f73a0 (diff)
downloadlinux-stable-a4a98b714e64e290f95ed92920395c730e554816.tar.gz
linux-stable-a4a98b714e64e290f95ed92920395c730e554816.tar.bz2
linux-stable-a4a98b714e64e290f95ed92920395c730e554816.zip
ALSA: fireworks: use u32 type for be32_to_cpup() macro
commit 463543ac2effaeb2b524f0a0a92f2413c23998ca upstream. In former commit, snd_efw_command_get_phys_meters() was added to handle metering data. The given buffer is used to save transaction result and to convert between endianness. But this causes sparse warnings. fireworks_command.c:269:25: warning: incorrect type in argument 1 (different base types) fireworks_command.c:269:25: expected unsigned int [usertype] *p fireworks_command.c:269:25: got restricted __be32 [usertype] * This commit fixes this bug. Fixes: bde8a8f23bbe('ALSA: fireworks: Add transaction and some commands') Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
-rw-r--r--sound/firewire/fireworks/fireworks_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/fireworks/fireworks_command.c b/sound/firewire/fireworks/fireworks_command.c
index 166f80584c2a..94bab0476a65 100644
--- a/sound/firewire/fireworks/fireworks_command.c
+++ b/sound/firewire/fireworks/fireworks_command.c
@@ -257,7 +257,7 @@ int snd_efw_command_get_phys_meters(struct snd_efw *efw,
struct snd_efw_phys_meters *meters,
unsigned int len)
{
- __be32 *buf = (__be32 *)meters;
+ u32 *buf = (u32 *)meters;
unsigned int i;
int err;