gpio: pca953x: Factor out common code from device_pca95xx_init()
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:39:55 +0000 (02:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:03 +0000 (15:19 +0100)
commit7a04aaa32cbc449588fecc77da637e0da771283f
treeadfc887e506fc1ee6f672119cdcf677dd87a9688
parent90adb0979947ab9ee2bd5fffa28c6812a47cd7f2
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>
drivers/gpio/gpio-pca953x.c