diff options
| -rw-r--r-- | drivers/gpio/gpio-pca953x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index b7ef33f63392..2b27d18410aa 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c | |||
| @@ -308,7 +308,8 @@ static const struct regmap_config pca953x_i2c_regmap = { | |||
| 308 | .volatile_reg = pca953x_volatile_register, | 308 | .volatile_reg = pca953x_volatile_register, |
| 309 | 309 | ||
| 310 | .cache_type = REGCACHE_RBTREE, | 310 | .cache_type = REGCACHE_RBTREE, |
| 311 | .max_register = 0x7f, | 311 | /* REVISIT: should be 0x7f but some 24 bit chips use REG_ADDR_AI */ |
| 312 | .max_register = 0xff, | ||
| 312 | }; | 313 | }; |
| 313 | 314 | ||
| 314 | static u8 pca953x_recalc_addr(struct pca953x_chip *chip, int reg, int off, | 315 | static u8 pca953x_recalc_addr(struct pca953x_chip *chip, int reg, int off, |
