mfd: tps65090: Set regmap config reg counts properly
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sun, 31 Jan 2016 22:00:06 +0000 (23:00 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 Mar 2016 08:50:36 +0000 (08:50 +0000)
commit5c1488906f852473b4d7837c3e33e411e0eb6910
tree3d47aefe6fa478fdcbb2d6454604743948fcb1a3
parent8c037e0c8eaa7dcb3a190b9be841ee81edb865ff
mfd: tps65090: Set regmap config reg counts properly

Regmap config max_register field should contain number of
device last register, however num_reg_defaults_raw field
should be set to register count instead
(usually one register more than max_register).

tps65090 driver had both of these fields set to the same value,
fix this by introducing separate defines for max register
number and total count of registers.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65090.c
include/linux/mfd/tps65090.h