From: Takashi Iwai Date: Wed, 25 Jul 2018 21:24:13 +0000 (+0200) Subject: ALSA: atiixp_modem: Proper endian notations X-Git-Tag: v4.19~308^2~6^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e49aadf64992c138b354a2e9ae35a3ae0399415;p=platform%2Fkernel%2Flinux-rpi.git ALSA: atiixp_modem: Proper endian notations The DMA address table in atiixp modem driver is in little-endian, hence we should define it with __le32 properly. Spotted by sparse, a warning like: sound/pci/atiixp_modem.c:360:28: warning: incorrect type in assignment (different base types) Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index a586635..dc1de86 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c @@ -183,10 +183,10 @@ struct atiixp_modem; */ struct atiixp_dma_desc { - u32 addr; /* DMA buffer address */ + __le32 addr; /* DMA buffer address */ u16 status; /* status bits */ u16 size; /* size of the packet in dwords */ - u32 next; /* address of the next packet descriptor */ + __le32 next; /* address of the next packet descriptor */ }; /*