gpio: 104-idi-48: Implement and utilize register structures
authorWilliam Breathitt Gray <william.gray@linaro.org>
Wed, 20 Jul 2022 13:46:01 +0000 (09:46 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 20 Jul 2022 15:44:44 +0000 (17:44 +0200)
commit3ce632fdd13abd23686c29e81a924d47365b2eca
tree0f567a73cee63e475ba6bf2821001bde004fc34e
parent71b7b3972590908fd724f4622cd908ad02464ad8
gpio: 104-idi-48: Implement and utilize register structures

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

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: John Hentges <jhentges@accesio.com>
Cc: Jay Dolan <jay.dolan@accesio.com>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/Kconfig
drivers/gpio/gpio-104-idi-48.c