summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2016-01-31 23:00:06 +0100
committerLee Jones <lee.jones@linaro.org>2016-03-16 08:50:36 +0000
commit5c1488906f852473b4d7837c3e33e411e0eb6910 (patch)
tree3d47aefe6fa478fdcbb2d6454604743948fcb1a3 /include/linux/mfd
parent8c037e0c8eaa7dcb3a190b9be841ee81edb865ff (diff)
downloadop-kernel-dev-5c1488906f852473b4d7837c3e33e411e0eb6910.zip
op-kernel-dev-5c1488906f852473b4d7837c3e33e411e0eb6910.tar.gz
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>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tps65090.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h
index 0bf2708..67d144b 100644
--- a/include/linux/mfd/tps65090.h
+++ b/include/linux/mfd/tps65090.h
@@ -77,6 +77,11 @@ enum {
#define TPS65090_REG_CG_CTRL5 0x09
#define TPS65090_REG_CG_STATUS1 0x0a
#define TPS65090_REG_CG_STATUS2 0x0b
+#define TPS65090_REG_AD_OUT1 0x17
+#define TPS65090_REG_AD_OUT2 0x18
+
+#define TPS65090_MAX_REG TPS65090_REG_AD_OUT2
+#define TPS65090_NUM_REGS (TPS65090_MAX_REG + 1)
struct tps65090 {
struct device *dev;
OpenPOWER on IntegriCloud