ALSA: fireworks: use u32 type for be32_to_cpup() macro
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 18 Oct 2015 13:39:51 +0000 (22:39 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Oct 2015 09:57:02 +0000 (11:57 +0200)
commit463543ac2effaeb2b524f0a0a92f2413c23998ca
tree87a1975e78a2bfb147e6c233fe6adb21ebb5b297
parentcbc6f28067aa0aa1193c2bf3546430b2c4dae22c
ALSA: fireworks: use u32 type for be32_to_cpup() macro

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>
sound/firewire/fireworks/fireworks_command.c