From a6bdf526a02165036ae7808c9610708cea9a143b Mon Sep 17 00:00:00 2001 From: Oleksandr Dmytryshyn Date: Thu, 26 Apr 2012 11:21:22 +0300 Subject: MFD: TWL6030: Introduce errata implementation This patch adds for the kernel code ability to the errata implementation for the TWL6030/TWL6032 chips. Change-Id: Ieb2329ec3cf1e0300decc2908fba28aa471854e5 Signed-off-by: Oleksandr Dmytryshyn --- drivers/mfd/twl-core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'drivers/mfd') diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 7e3c4d317c1..18b25844090 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -675,7 +675,8 @@ add_regulator(int num, struct regulator_init_data *pdata, */ static int -add_children(struct twl4030_platform_data *pdata, unsigned long features) +add_children(struct twl4030_platform_data *pdata, unsigned long features, + unsigned long errata) { struct device *child; unsigned sub_chip_id; @@ -699,6 +700,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features) } if (twl_has_bci() && pdata->bci) { pdata->bci->features = features; + pdata->bci->errata = errata; child = add_child(1, "twl6030_bci", pdata->bci, sizeof(*pdata->bci), false, @@ -1324,6 +1326,7 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) struct twl4030_platform_data *pdata = client->dev.platform_data; u8 temp; int ret = 0, features; + unsigned long errata = 0; if (!pdata) { dev_dbg(&client->dev, "no platform data?\n"); @@ -1421,7 +1424,7 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) twl_i2c_write_u8(TWL4030_MODULE_INTBR, temp, REG_GPPUPDCTR1); } - status = add_children(pdata, features); + status = add_children(pdata, features, errata); fail: if (status < 0) twl_remove(client); -- cgit v1.2.3