aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-03-07 08:16:05 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-16 13:50:51 -0400
commit39ecb0376508b5cd20a951388d10aed2d719a77f (patch)
tree7629904be727675cde458c54f02a8eefd808cec7 /drivers/mfd
parent02b09703e7a411f80e5ec037b3abf14061a61933 (diff)
mfd: Use correct variable name for tps65910 regmap config
This was the copy-paste issue in reg cache support code where variable name for regmap config was not really starting from the device name, it was starting from some other device name. Fixing this so that variable name contains actual device name. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65910.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index 1c4f53efee7..bf2b25ebf2c 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -81,7 +81,7 @@ static bool is_volatile_reg(struct device *dev, unsigned int reg)
81 return true; 81 return true;
82} 82}
83 83
84static const struct regmap_config rc5t583_regmap_config = { 84static const struct regmap_config tps65910_regmap_config = {
85 .reg_bits = 8, 85 .reg_bits = 8,
86 .val_bits = 8, 86 .val_bits = 8,
87 .volatile_reg = is_volatile_reg, 87 .volatile_reg = is_volatile_reg,
@@ -120,7 +120,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c,
120 tps65910->write = tps65910_i2c_write; 120 tps65910->write = tps65910_i2c_write;
121 mutex_init(&tps65910->io_mutex); 121 mutex_init(&tps65910->io_mutex);
122 122
123 tps65910->regmap = regmap_init_i2c(i2c, &rc5t583_regmap_config); 123 tps65910->regmap = regmap_init_i2c(i2c, &tps65910_regmap_config);
124 if (IS_ERR(tps65910->regmap)) { 124 if (IS_ERR(tps65910->regmap)) {
125 ret = PTR_ERR(tps65910->regmap); 125 ret = PTR_ERR(tps65910->regmap);
126 dev_err(&i2c->dev, "regmap initialization failed: %d\n", ret); 126 dev_err(&i2c->dev, "regmap initialization failed: %d\n", ret);