phy: amlogic: meson8b-usb2: Use a MMIO regmap
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 12 May 2020 22:24:21 +0000 (00:24 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 15 May 2020 07:46:55 +0000 (13:16 +0530)
commitde143a40fa7d0acae4295c3b312ec96cc8dd9cd0
treef1c1b236b2bc335e453be80e66876a9e52dc4b23
parent2c0dd8440312b77b42f8e27fd751015dc8f519ff
phy: amlogic: meson8b-usb2: Use a MMIO regmap

Using a MMIO regmap and switch to regmap_update_bits() to simplify the
code in the driver. Also switch to devm_platform_ioremap_resource()
instead of open-coding it. No functional changes intended.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Thomas Graichen <thomas.graichen@gmail.com>
Link: https://lore.kernel.org/r/20200512222424.549351-4-martin.blumenstingl@googlemail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/amlogic/Kconfig
drivers/phy/amlogic/phy-meson8b-usb2.c