Skip to content

Commit

Permalink
mfd: tps65217: Tell regmap what registers are valid
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Lee Jones committed Sep 26, 2014
1 parent 34a4958 commit 0b496b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/tps65217.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
2 changes: 2 additions & 0 deletions include/linux/mfd/tps65217.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
#define TPS65217_REG_SEQ5 0X1D
#define TPS65217_REG_SEQ6 0X1E

#define TPS65217_REG_MAX TPS65217_REG_SEQ6

/* Register field definitions */
#define TPS65217_CHIPID_CHIP_MASK 0xF0
#define TPS65217_CHIPID_REV_MASK 0x0F
Expand Down

0 comments on commit 0b496b4

Please sign in to comment.