gpio: pca953x: Zap ad-hoc reg_direction cache
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:39:59 +0000 (02:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:15 +0000 (15:19 +0100)
commit0f25fda840a9420172dfa6a3f333066017b78a04
treed248dd940007b3bab84ab8fc51201f513f169ef1
parent49427232764d62e5933b2c23cc841739abc9804c
gpio: pca953x: Zap ad-hoc reg_direction cache

Replace the ad-hoc reg_direction direction register caching with generic
regcache cache. 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