diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-25 23:24:13 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-27 09:06:13 +0200 |
commit | 7e49aadf64992c138b354a2e9ae35a3ae0399415 (patch) | |
tree | d0944859e5b3ce2c5cfa962f19901b5152e0c628 /sound/pci/atiixp_modem.c | |
parent | c44a81a40af0e1aa52b88d1c60682e30c411fb23 (diff) | |
download | linux-7e49aadf64992c138b354a2e9ae35a3ae0399415.tar.gz linux-7e49aadf64992c138b354a2e9ae35a3ae0399415.tar.bz2 linux-7e49aadf64992c138b354a2e9ae35a3ae0399415.zip |
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 <tiwai@suse.de>
Diffstat (limited to 'sound/pci/atiixp_modem.c')
-rw-r--r-- | sound/pci/atiixp_modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index a586635664e0..dc1de860cedf 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 */ }; /* |