]> git.ipfire.org Git - people/ms/linux.git/commit
gpio: 104-dio-48e: Utilize iomap interface
authorWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 10 May 2022 17:30:54 +0000 (13:30 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 14 May 2022 12:56:54 +0000 (14:56 +0200)
commite993e236058981aceee0518ad17e11f3d16112f8
tree4e6fd267bd4813eee6501c9bc7cd2fb4e0e073b8
parentcf8f4462e5fa6b3b0c7f3a7543473d0dfdd8d06a
gpio: 104-dio-48e: 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>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-104-dio-48e.c