Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 9a0daaab authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown
Browse files

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: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ce1cfe29
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -49,10 +49,10 @@ void memcpy32_toio(void __iomem *dst, const void *src, int count)

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);
}

/**