gpio: gpio-mm: Implement and utilize register structures
authorWilliam Breathitt Gray <william.gray@linaro.org>
Wed, 20 Jul 2022 13:46:02 +0000 (09:46 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 20 Jul 2022 15:44:47 +0000 (17:44 +0200)
commit949506dc608f9820e0cee51b106c35fd3503bbb2
treef793c1b27c0ed3c6c34a53c9dbbcee5a897f0d90
parent3ce632fdd13abd23686c29e81a924d47365b2eca
gpio: gpio-mm: Implement and utilize register structures

Reduce magic numbers and improve code readability by implementing and
utilizing named register data structures. The GPIO-MM device features an
Intel 8255 compatible GPIO interface, so the i8255 GPIO module is
selected and utilized as well.

Tested-by: Fred Eckert <Frede@cmslaser.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/Kconfig
drivers/gpio/gpio-gpio-mm.c