]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ab8aaf83e5aca666afc68ba5dccb21a9bdf2712
tree374dfcef8705ba9c0a6c015bbb5e1dc145126df6
parentad42c78b6147e53cbc7d4d4269073046371410bc
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