diff options
author | Chandrabhanu Mahapatra <cmahapatra@ti.com> | 2012-07-10 19:05:37 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-07-17 21:00:18 +0200 |
commit | 6a7b36aa4b0afbe7a9798feac16de47ad856f358 (patch) | |
tree | ce7f451864f44cbd4d8896f7ca8d478f07b8d249 /include/linux/i2c | |
parent | 346720130aa49e1b711c0900e98fd12f4de972b0 (diff) | |
download | talos-obmc-linux-6a7b36aa4b0afbe7a9798feac16de47ad856f358.tar.gz talos-obmc-linux-6a7b36aa4b0afbe7a9798feac16de47ad856f358.zip |
GPIO: PCA953X: Increase size of invert variable to support 24 bit
TCA6424 is a low voltage 24 bit I2C and SMBus I/O expander of pca953x family
similar to its 16 bit predecessor TCA6416. It comes with three 8-bit active
Input, Output, Polarity Inversion and Configuration registers each. The polarity
of Input ports can be reversed by setting the appropiate bit in Polarity
Inversion registers.
The variables corresponding to Input, Output and Configuration registers have
already been updated to support 24 bit values. This patch thus updates the
invert variable of PCA953X platform data to support 24 bit.
Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/pca953x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h index 139ba52667c8..3c98dd4f901f 100644 --- a/include/linux/i2c/pca953x.h +++ b/include/linux/i2c/pca953x.h @@ -11,7 +11,7 @@ struct pca953x_platform_data { unsigned gpio_base; /* initial polarity inversion setting */ - uint16_t invert; + u32 invert; /* interrupt base */ int irq_base; |