gpio: pca953x: Perform basic regmap conversion
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:39:58 +0000 (02:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:11 +0000 (15:19 +0100)
commit49427232764d62e5933b2c23cc841739abc9804c
tree374dfcef8705ba9c0a6c015bbb5e1dc145126df6
parentb32cecb46bdc8b3ea36c7a71aaca1853c0342cae
gpio: pca953x: Perform basic regmap conversion

Convert the driver to use regmap to access the chips. Due to the convoluted
register mapping scheme, implement read/write/volatile check functions that
untangle the mess and perform check accordingly. This patch does not zap the
internal register cache of the PCA953x driver, nor does it push the regmap
access down into the gpiochip accessors to simplify the review. All that is
in subsequent patches.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c