diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2016-12-21 09:36:47 -0500 |
|---|---|---|
| committer | Sebastian Reichel <sre@kernel.org> | 2017-01-04 15:54:58 -0500 |
| commit | eac53b3664f592713655f5de59dc44bdd0cfc0bd (patch) | |
| tree | 980b1be684ff7569369f32d126698996d2ad185e /include/linux/mfd | |
| parent | d556f21cb0f8b66f2e7956244c1a739ee6401579 (diff) | |
power: supply: axp288_charger: Drop platform_data dependency
When the axp288_charger driver was originally merged, it was merged with
a dependency on some other driver providing platform data for it.
However the battery-data-framework which should provide that data never
got merged, so the axp288_charger as merged upstream has never worked,
its probe method simply always returns -ENODEV.
This commit removes the dependency on the platform_data instead reading
back the charging current and charging voltage that the firmware has set
and using those values as the maximum values the user may set.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/axp20x.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index a4860bc9b73d..e460fc42d63e 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h | |||
| @@ -554,13 +554,6 @@ struct axp20x_fg_pdata { | |||
| 554 | int thermistor_curve[MAX_THERM_CURVE_SIZE][2]; | 554 | int thermistor_curve[MAX_THERM_CURVE_SIZE][2]; |
| 555 | }; | 555 | }; |
| 556 | 556 | ||
| 557 | struct axp20x_chrg_pdata { | ||
| 558 | int max_cc; | ||
| 559 | int max_cv; | ||
| 560 | int def_cc; | ||
| 561 | int def_cv; | ||
| 562 | }; | ||
| 563 | |||
| 564 | struct axp288_extcon_pdata { | 557 | struct axp288_extcon_pdata { |
| 565 | /* GPIO pin control to switch D+/D- lines b/w PMIC and SOC */ | 558 | /* GPIO pin control to switch D+/D- lines b/w PMIC and SOC */ |
| 566 | struct gpio_desc *gpio_mux_cntl; | 559 | struct gpio_desc *gpio_mux_cntl; |
