gpio: 104-dio-48e: Migrate to regmap API
authorWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 27 Dec 2022 14:09:44 +0000 (09:09 -0500)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:28 +0000 (15:55 +0100)
commit0b4243406897d819daddc06f5efc793f84d3824c
treefc464ab6f1ed6529f21753af9e8d518c6dcf31d3
parent0b7c490d7de3255ad1db82000b42f3f021f6dbf0
gpio: 104-dio-48e: Migrate to regmap API

The regmap API supports IO port accessors so we can take advantage of
regmap abstractions rather than handling access to the device registers
directly in the driver. The 104-dio-48e module is migrated to the new
i8255 library interface leveraging the gpio-regmap API.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-104-dio-48e.c