gpio: pca953x: define masks for addressing common and extended registers
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 17 May 2018 04:59:48 +0000 (06:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 May 2018 11:49:40 +0000 (13:49 +0200)
commit394aeef83c7080c9fd850e3479e0cd58e510163b
tree20d538f32e2e38b2d4393053239ee1683980ceb0
parent0cdf21b34e3062af8da0a2a1c419654263c21b87
gpio: pca953x: define masks for addressing common and extended registers

These mask bits are to be used to map the extended register
addresses (which are defined for an unsupported 8-bit pcal chip)
to 16 and 24 bit chips (pcal6524).

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c