Skip to content

Commit

Permalink
ASoC: Intel: Atom: fix inversion between __iowrite32 and __ioread32
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
plbossart authored and broonie committed Jul 25, 2018
1 parent ce1cfe2 commit 9a0daaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/intel/atom/sst/sst_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 9a0daaa

Please sign in to comment.