summaryrefslogtreecommitdiffstats
path: root/sound/pci/riptide
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-25 23:24:04 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-27 09:06:02 +0200
commitbe05e3de3a933156d472127f659d4473c461dcc5 (patch)
treedfa7befa9685ef1703d12cd064b3fa03599e23eb /sound/pci/riptide
parentALSA: hda: Proper endian notations for BDL pointers (diff)
downloadlinux-be05e3de3a933156d472127f659d4473c461dcc5.tar.xz
linux-be05e3de3a933156d472127f659d4473c461dcc5.zip
ALSA: riptide: Properly endian notations
The SG descriptor of Riptide contains the little-endian values, hence we need to define with __le32 properly. This fixes sparse warnings like: sound/pci/riptide/riptide.c:1112:40: warning: cast to restricted __le32 Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/riptide')
-rw-r--r--sound/pci/riptide/riptide.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c
index 9d2b2ef15c6b..23017e3bc76c 100644
--- a/sound/pci/riptide/riptide.c
+++ b/sound/pci/riptide/riptide.c
@@ -470,10 +470,10 @@ struct snd_riptide {
};
struct sgd { /* scatter gather desriptor */
- u32 dwNextLink;
- u32 dwSegPtrPhys;
- u32 dwSegLen;
- u32 dwStat_Ctl;
+ __le32 dwNextLink;
+ __le32 dwSegPtrPhys;
+ __le32 dwSegLen;
+ __le32 dwStat_Ctl;
};
struct pcmhw { /* pcm descriptor */