]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: stx104: Utilize iomap interface
authorWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 10 May 2022 17:30:59 +0000 (13:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:26 +0000 (14:23 +0200)
commit6089d354346f8e04f4354f09f873ae5d94cd8e05
tree43a4a518c93904d6e372e90100e99041133b99e6
parent565b96d9a7ab68276d88a265ebe71c05026c7ceb
iio: adc: stx104: Utilize iomap interface

[ Upstream commit 73b8390cc27e096ab157be261ccc4eaaa6db87af ]

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>
Stable-dep-of: 4f9b80aefb9e ("iio: addac: stx104: Fix race condition when converting analog-to-digital")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/stx104.c