iio: adc: stx104: Utilize iomap interface
stable inclusion from stable-v5.10.192 commit 9d1609824554d49fe010cd27e79c5491f79b93b0 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I933RF Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9d1609824554d49fe010cd27e79c5491f79b93b0 -------------------------------- [ Upstream commit 73b8390c ] 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: 4f9b80ae ("iio: addac: stx104: Fix race condition when converting analog-to-digital") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment