aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps6105x.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-05-11 10:33:25 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 19:45:11 +0200
commita7c98ce25cfa600bd614134a82d22bcb7bcb9d65 (patch)
treed8656252c73477f611d01bc5dc962e8976fb88e0 /drivers/mfd/tps6105x.c
parenta4579ad2bb6557834ebfafc8d2942891516fb4ad (diff)
downloadkernel_goldelico_gta04-a7c98ce25cfa600bd614134a82d22bcb7bcb9d65.zip
kernel_goldelico_gta04-a7c98ce25cfa600bd614134a82d22bcb7bcb9d65.tar.gz
kernel_goldelico_gta04-a7c98ce25cfa600bd614134a82d22bcb7bcb9d65.tar.bz2
mfd: Use mfd cell platform_data for tps6105x cells platform bits
With the addition of a platform device mfd_cell pointer, MFD drivers can go back to passing platform data back to their sub drivers. This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers MFD agnostic. This is mostly needed for non MFD aware sub drivers. Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Liam Girdwood <lrg@slimlogic.co.uk> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps6105x.c')
-rw-r--r--drivers/mfd/tps6105x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c
index 46d8205..a293b97 100644
--- a/drivers/mfd/tps6105x.c
+++ b/drivers/mfd/tps6105x.c
@@ -183,7 +183,8 @@ static int __devinit tps6105x_probe(struct i2c_client *client,
/* Set up and register the platform devices. */
for (i = 0; i < ARRAY_SIZE(tps6105x_cells); i++) {
/* One state holder for all drivers, this is simple */
- tps6105x_cells[i].mfd_data = tps6105x;
+ tps6105x_cells[i].platform_data = tps6105x;
+ tps6105x_cells[i].pdata_size = sizeof(*tps6105x);
}
ret = mfd_add_devices(&client->dev, 0, tps6105x_cells,