commit | b32cecb46bdc8b3ea36c7a71aaca1853c0342cae | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut@gmail.com> | Wed Dec 12 02:39:57 2018 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Dec 14 15:19:07 2018 +0100 |
tree | 4ba782795775440cb2285f09218f39f08732afa8 | |
parent | 25a1b7102f3f1181be1feaa0ed6ff82f1b526acd [diff] |
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>