diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2013-01-22 22:10:23 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-25 09:02:10 +0100 |
commit | f5f0b7aa897ebf6b0d077356a787526212460dd7 (patch) | |
tree | fb3eaa1341c6e1f61cfb2cb437c1706c22b66471 /drivers/scsi/pas16.h | |
parent | 5985d76cc1b62125301754c9b636a18c346bfc52 (diff) | |
download | blackbird-obmc-linux-f5f0b7aa897ebf6b0d077356a787526212460dd7.tar.gz blackbird-obmc-linux-f5f0b7aa897ebf6b0d077356a787526212460dd7.zip |
gpio: pca953x: make the register access by GPIO bank
Until now the pca953x driver accessed all the bank of a given register
in a single command using only a 32 bits variable. New expanders from
the pca53x family come with 40 GPIOs which no more fit in a 32
variable. This patch make access to the registers more generic by
relying on an array of u8 variables. This fits exactly the way the
registers are represented in the hardware.
It also adds helpers to access to a single register of a bank instead
of reading or writing all the banks for a given register.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/scsi/pas16.h')
0 files changed, 0 insertions, 0 deletions