diff options
-rw-r--r-- | include/linux/mfd/da9052/da9052.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/da9052/da9052.h b/include/linux/mfd/da9052/da9052.h index 5680a83a3324..27b80304dc44 100644 --- a/include/linux/mfd/da9052/da9052.h +++ b/include/linux/mfd/da9052/da9052.h @@ -52,7 +52,7 @@ #define INVALID 1 /* Total number of registers in DA9057 */ -#define DA9052_REG_CNT DA9052_PAGE1_REG_END +#define DA9052_REG_CNT (DA9052_PAGE1_REG_END+1) /* Maximum number of registers that can be read/written by a singe request */ #define MAX_READ_WRITE_CNT 16 |