diff options
author | Chao Xie <chao.xie@marvell.com> | 2013-06-14 05:21:49 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-17 23:06:28 (GMT) |
commit | c750d8e053c08ccb82d814d695e64d1eb602a91a (patch) | |
tree | bdf645b99ffe6fe9ae2b207730e7d26d14d3a96f /drivers/mfd | |
parent | 1ef5677e0e45c77ca05e697fb83d4f9b3fe96caf (diff) | |
download | linux-c750d8e053c08ccb82d814d695e64d1eb602a91a.tar.xz |
mfd: 88pm800: Remove the power and gpadc page addr from platform data
88pm800 has two addtional pages - power and gpadc.
The address of the pages depends on the address of 88pm800.
So do not need pass the address of the power and gpadc in
platform data.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/88pm800.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index d2951d7..6b607ad 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -525,8 +525,9 @@ static int pm800_probe(struct i2c_client *client, goto err_subchip_alloc; } - subchip->power_page_addr = pdata->power_page_addr; - subchip->gpadc_page_addr = pdata->gpadc_page_addr; + /* pm800 has 2 addtional pages to support power and gpadc. */ + subchip->power_page_addr = client->addr + 1; + subchip->gpadc_page_addr = client->addr + 2; chip->subchip = subchip; ret = pm800_pages_init(chip); |