[alsa-devel] [PATCH 31/46] ASoC: pxa: ac97: use normal MMIO accessors

Robert Jarzmik robert.jarzmik at free.fr
Mon Oct 28 22:47:59 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: 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