aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pca953x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r--drivers/gpio/gpio-pca953x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 9391cf16e990..426c51dd420c 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -146,8 +146,7 @@ static int pca953x_write_regs(struct pca953x_chip *chip, int reg, u8 *val)
146 ret = i2c_smbus_write_i2c_block_data(chip->client, 146 ret = i2c_smbus_write_i2c_block_data(chip->client,
147 (reg << bank_shift) | REG_ADDR_AI, 147 (reg << bank_shift) | REG_ADDR_AI,
148 NBANK(chip), val); 148 NBANK(chip), val);
149 } 149 } else {
150 else {
151 switch (chip->chip_type) { 150 switch (chip->chip_type) {
152 case PCA953X_TYPE: 151 case PCA953X_TYPE:
153 ret = i2c_smbus_write_word_data(chip->client, 152 ret = i2c_smbus_write_word_data(chip->client,