]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite629c49425f14d752694b21b437a76278421ca70
treeadfc887e506fc1ee6f672119cdcf677dd87a9688
parent76756f0f49416648b8a6652d643066a6524a5792
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