gpio: pca953x: Extract the register address mangling to single function
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:39:57 +0000 (02:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:07 +0000 (15:19 +0100)
commitb32cecb46bdc8b3ea36c7a71aaca1853c0342cae
tree4ba782795775440cb2285f09218f39f08732afa8
parent25a1b7102f3f1181be1feaa0ed6ff82f1b526acd
gpio: pca953x: Extract the register address mangling to single function

Instead of having the I2C register calculation function spread across
multiple accessor functions, pull it out into a single function which
returns the adjusted register address.

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