summaryrefslogtreecommitdiff
path: root/sound/pci/trident/trident.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-26 00:24:02 +0300
committerTakashi Iwai <tiwai@suse.de>2018-07-27 10:06:00 +0300
commit752089fea357b36ba9dd477db594bdc677110579 (patch)
treebbe0734748e3d30f9c8daf313bf3594de72e46ae /sound/pci/trident/trident.h
parentd3c637632da95d7646053c64b855641cd917960e (diff)
downloadlinux-752089fea357b36ba9dd477db594bdc677110579.tar.xz
ALSA: trident: Proper endian notations
The TLB entries in Trident driver are represented in little-endian, hence they should be declared as __le32. This patch fixes the sparse warnings like: sound/pci/trident/trident_memory.c:226:17: warning: incorrect type in assignment (different base types) Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/trident/trident.h')
-rw-r--r--sound/pci/trident/trident.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/trident/trident.h b/sound/pci/trident/trident.h
index 9624e5937719..2d62c1921255 100644
--- a/sound/pci/trident/trident.h
+++ b/sound/pci/trident/trident.h
@@ -264,7 +264,7 @@ struct snd_trident_memblk_arg {
};
struct snd_trident_tlb {
- unsigned int * entries; /* 16k-aligned TLB table */
+ __le32 *entries; /* 16k-aligned TLB table */
dma_addr_t entries_dmaaddr; /* 16k-aligned PCI address to TLB table */
unsigned long * shadow_entries; /* shadow entries with virtual addresses */
struct snd_dma_buffer buffer;