summaryrefslogtreecommitdiff
path: root/sound/soc/intel/atom/sst/sst_loader.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2018-07-25 00:12:48 +0300
committerMark Brown <broonie@kernel.org>2018-07-25 19:21:22 +0300
commit9a0daaab31e9e39047ced79409313c34dae4635a (patch)
treeecfc0585603cd48353dd37d5e1f6a981b71d7721 /sound/soc/intel/atom/sst/sst_loader.c
parentce1cfe295abaa7436f9049bcb2562c843089abfc (diff)
downloadlinux-9a0daaab31e9e39047ced79409313c34dae4635a.tar.xz
ASoC: Intel: Atom: fix inversion between __iowrite32 and __ioread32
This looks like a copy/paste issue, but clearly there is an inversion that is obvious when checking the arguments. Detected with Sparse - now that we have fewer warnings this one was easy to find. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst/sst_loader.c')
-rw-r--r--sound/soc/intel/atom/sst/sst_loader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/intel/atom/sst/sst_loader.c b/sound/soc/intel/atom/sst/sst_loader.c
index a686eef2cf7f..27413ebae956 100644
--- a/sound/soc/intel/atom/sst/sst_loader.c
+++ b/sound/soc/intel/atom/sst/sst_loader.c
@@ -44,15 +44,15 @@ void memcpy32_toio(void __iomem *dst, const void *src, int count)
/* __iowrite32_copy uses 32-bit count values so divide by 4 for
* right count in words
*/
- __iowrite32_copy(dst, src, count/4);
+ __iowrite32_copy(dst, src, count / 4);
}
void memcpy32_fromio(void *dst, const void __iomem *src, int count)
{
- /* __iowrite32_copy uses 32-bit count values so divide by 4 for
+ /* __ioread32_copy uses 32-bit count values so divide by 4 for
* right count in words
*/
- __iowrite32_copy(dst, src, count/4);
+ __ioread32_copy(dst, src, count / 4);
}
/**