[alsa-devel] [PATCH 32/46] ASoC: pxa: i2s: use normal MMIO accessors

Robert Jarzmik robert.jarzmik at free.fr
Mon Oct 28 22:50:44 CET 2019


Arnd Bergmann <arnd at arndb.de> writes:

> To avoid dereferencing hardwired constant pointers from a global header
> file, change the driver to use devm_platform_ioremap_resource for getting
> an __iomem pointer, and then using readl/writel on that.
>
> Each pointer dereference gets changed by a search&replace, which leads
> to a few overlong lines, but seems less risky than trying to clean up
> the code at the same time.
>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: alsa-devel at alsa-project.org
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>

Cheers.

--
Robert


More information about the Alsa-devel mailing list