mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
1ef5677e0e
commit
c750d8e053
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue