staging: fieldbus: arcx-anybus: change custom -> mmio regmap
authorSven Van Asbroeck <thesven73@gmail.com>
Tue, 21 May 2019 18:29:32 +0000 (14:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 12:32:40 +0000 (14:32 +0200)
commit2411a336c8ce894e5db26ebe66a6118726b13327
treec52fb5944c4087024a74fd95d25e3f84f9965a64
parent67436a1ecc72387feabde8c07a347261f4f14ca8
staging: fieldbus: arcx-anybus: change custom -> mmio regmap

The arcx-anybus's registers are accessed via a memory-mapped
IO region. A regmap associated with this region is created
using custom reg_read() / reg_write() callbacks.

However, an abstraction which creates a memory-mapped IO
region backed regmap already exists: devm_regmap_init_mmio().

Replace the custom regmap with the existing kernel abstraction.
As a pleasant side-effect, sparse warnings now disappear.

Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/arcx-anybus.c