diff options
author | Mark Brown <broonie@kernel.org> | 2014-09-05 22:16:18 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 08:23:50 +0100 |
commit | 0b496b4c95c74ba795bc642a6092263ebf905759 (patch) | |
tree | b372fddfa8621307155ef6b5ac53c583e734f174 /drivers | |
parent | 34a4958e4cfe1a379ed18fb3e2d0b93ba08f28d3 (diff) | |
download | lwn-0b496b4c95c74ba795bc642a6092263ebf905759.tar.gz lwn-0b496b4c95c74ba795bc642a6092263ebf905759.zip |
mfd: tps65217: Tell regmap what registers are valid
Allow regmap to provide debugfs access to the register map by telling it
what registers are valid.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/tps65217.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 3cc4c7084b92..a8ee52c95f2f 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -146,6 +146,8 @@ EXPORT_SYMBOL_GPL(tps65217_clear_bits); static struct regmap_config tps65217_regmap_config = { .reg_bits = 8, .val_bits = 8, + + .max_register = TPS65217_REG_MAX, }; static const struct of_device_id tps65217_of_match[] = { |