commit | 7a04aaa32cbc449588fecc77da637e0da771283f | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut@gmail.com> | Wed Dec 12 02:39:55 2018 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Dec 14 15:19:03 2018 +0100 |
tree | adfc887e506fc1ee6f672119cdcf677dd87a9688 | |
parent | 90adb0979947ab9ee2bd5fffa28c6812a47cd7f2 [diff] |
gpio: pca953x: Factor out common code from device_pca95xx_init() The PCA957x and PCA953x init functions are almost the same, except for the different register mapping and one extra write to BKEN register in case of PCA957x. Factor out the common code. 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>