diff options
author | Timon Baetz <timon.baetz@protonmail.com> | 2020-11-09 22:43:28 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-11-30 03:56:17 +0300 |
commit | 5976a8d0bd4796ef6a0cb1f567a0d82967c62408 (patch) | |
tree | ca18d8612baeef8433c1f72e0ea7c796d1efda2a /drivers/power | |
parent | 70bd58fff29dc4c53cfea2da01f05d2377d2ffa9 (diff) | |
download | linux-5976a8d0bd4796ef6a0cb1f567a0d82967c62408.tar.xz |
power: supply: max8997-charger: Fix platform data retrieval
Use pdata field of max8998_dev struct to obtain platform data.
Signed-off-by: Timon Baetz <timon.baetz@protonmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/max8997_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/max8997_charger.c b/drivers/power/supply/max8997_charger.c index 94d1ade047a7..8fccd58dac67 100644 --- a/drivers/power/supply/max8997_charger.c +++ b/drivers/power/supply/max8997_charger.c @@ -84,7 +84,7 @@ static int max8997_battery_probe(struct platform_device *pdev) int ret = 0; struct charger_data *charger; struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); - struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); + struct max8997_platform_data *pdata = iodev->pdata; struct power_supply_config psy_cfg = {}; if (!pdata) |