gpio: pca953x: Zap ad-hoc reg_output cache
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:40:00 +0000 (02:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:19 +0000 (15:19 +0100)
commitec82d1eba346190171f9fa0f24e2e6eff5e5304c
treea6b140e37463b847cbb8d102040aee9a0ef269c9
parent0f25fda840a9420172dfa6a3f333066017b78a04
gpio: pca953x: Zap ad-hoc reg_output cache

Replace the ad-hoc reg_output output register caching with generic
regcache cache. Drop pca953x_write_single() which is no longer used.
This reduces code duplication.

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