Files
twx-linux/drivers
Vignesh R 4a2773383f gpio: pca953x: Fix NBANK calculation for PCA9536
commit a246b8198f upstream.

NBANK() macro assumes that ngpios is a multiple of 8(BANK_SZ) and
hence results in 0 banks for PCA9536 which has just 4 gpios. This is
wrong as PCA9356 has 1 bank with 4 gpios. This results in uninitialized
PCA953X_INVERT register. Fix this by using DIV_ROUND_UP macro in
NBANK().

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-20 18:09:17 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
2016-05-11 11:21:13 +02:00
2016-07-27 09:47:33 -07:00
…
…
…
…
…
…
…
…
…
…
2016-08-10 11:49:28 +02:00
…
…
…
…
…
2016-03-09 15:34:50 -08:00
…
…
…
…
…