]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad42c78b6147e53cbc7d4d4269073046371410bc
tree4ba782795775440cb2285f09218f39f08732afa8
parent8a5995b7545a12915004a85f914dfa1801090aee
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