summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-12-21 17:36:47 +0300
committerSebastian Reichel <sre@kernel.org>2017-01-04 23:54:58 +0300
commiteac53b3664f592713655f5de59dc44bdd0cfc0bd (patch)
tree980b1be684ff7569369f32d126698996d2ad185e /include/linux/mfd
parentd556f21cb0f8b66f2e7956244c1a739ee6401579 (diff)
downloadlinux-eac53b3664f592713655f5de59dc44bdd0cfc0bd.tar.xz
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.h7
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 {
int thermistor_curve[MAX_THERM_CURVE_SIZE][2];
};
-struct axp20x_chrg_pdata {
- int max_cc;
- int max_cv;
- int def_cc;
- int def_cv;
-};
-
struct axp288_extcon_pdata {
/* GPIO pin control to switch D+/D- lines b/w PMIC and SOC */
struct gpio_desc *gpio_mux_cntl;