]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 12 Feb 2016 09:20:31 +0000 (09:20 +0000)
commit103d8a7bb8a2d1a71bcc426771019a0c88a22b0d
tree5e708c4e44c6fd4bfe0ea6a382f1e747513a2442
parentfd78e9ccf30bdd77f1e7ef96b7bcfda363b0d0dd
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