mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
regulator: AB3100 support
This adds support for the regulators found in the AB3100 Mixed-Signal IC. It further also defines platform data for the ST-Ericsson U300 platform and extends the AB3100 MFD driver so that platform/board data with regulation constraints and an init function can be passed down all the way from the board to the regulators. Signed-off-by: Linus Walleij <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Liam Girdwood <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
bd207cfb00
commit
d619bc143e
5 changed files with 736 additions and 0 deletions
|
|
@ -837,6 +837,8 @@ static int __init ab3100_probe(struct i2c_client *client,
|
|||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct ab3100 *ab3100;
|
||||
struct ab3100_platform_data *ab3100_plf_data =
|
||||
client->dev.platform_data;
|
||||
int err;
|
||||
int i;
|
||||
|
||||
|
|
@ -920,6 +922,8 @@ static int __init ab3100_probe(struct i2c_client *client,
|
|||
for (i = 0; i < ARRAY_SIZE(ab3100_platform_devs); i++) {
|
||||
ab3100_platform_devs[i]->dev.parent =
|
||||
&client->dev;
|
||||
ab3100_platform_devs[i]->dev.platform_data =
|
||||
ab3100_plf_data;
|
||||
platform_set_drvdata(ab3100_platform_devs[i], ab3100);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue