iio: adc: stx104: Utilize iomap interface
authorWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 10 May 2022 17:30:59 +0000 (13:30 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Jun 2022 13:35:26 +0000 (14:35 +0100)
commit73b8390cc27e096ab157be261ccc4eaaa6db87af
treef2d4a437bafdf124ab5de34f9ccefad7aa44aa29
parent48d1ae774099640a4ee8e96a02b7721b479a7e6f
iio: adc: stx104: Utilize iomap interface

This driver doesn't need to access I/O ports directly via inb()/outb()
and friends. This patch abstracts such access by calling ioport_map()
to enable the use of more typical ioread8()/iowrite8() I/O memory
accessor calls.

Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/64673797df382c52fc32fce24348b25a0b05e73a.1652201921.git.william.gray@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stx104.c