aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2016-06-17 07:54:32 -0400
committerSebastian Reichel <sre@kernel.org>2016-08-10 19:11:03 -0400
commit8c0984e5a75337df513047ec92a6c09d78e3e5cd (patch)
treea2fc0a0dd7c7c40d9379bdd1c2b279c0959d0e1f
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
power: move power supply drivers to power/supply
This moves all power supply drivers from drivers/power/ to drivers/power/supply/. The intention is a cleaner source tree, since drivers/power/ also contains frameworks unrelated to power supply, like adaptive voltage scaling. Signed-off-by: Sebastian Reichel <sre@kernel.org>
-rw-r--r--Documentation/power/power_supply_class.txt4
-rw-r--r--MAINTAINERS41
-rw-r--r--drivers/power/Kconfig518
-rw-r--r--drivers/power/Makefile75
-rw-r--r--drivers/power/supply/88pm860x_battery.c (renamed from drivers/power/88pm860x_battery.c)0
-rw-r--r--drivers/power/supply/88pm860x_charger.c (renamed from drivers/power/88pm860x_charger.c)0
-rw-r--r--drivers/power/supply/Kconfig514
-rw-r--r--drivers/power/supply/Makefile74
-rw-r--r--drivers/power/supply/ab8500_bmdata.c (renamed from drivers/power/ab8500_bmdata.c)0
-rw-r--r--drivers/power/supply/ab8500_btemp.c (renamed from drivers/power/ab8500_btemp.c)0
-rw-r--r--drivers/power/supply/ab8500_charger.c (renamed from drivers/power/ab8500_charger.c)0
-rw-r--r--drivers/power/supply/ab8500_fg.c (renamed from drivers/power/ab8500_fg.c)0
-rw-r--r--drivers/power/supply/abx500_chargalg.c (renamed from drivers/power/abx500_chargalg.c)0
-rw-r--r--drivers/power/supply/act8945a_charger.c (renamed from drivers/power/act8945a_charger.c)0
-rw-r--r--drivers/power/supply/apm_power.c (renamed from drivers/power/apm_power.c)0
-rw-r--r--drivers/power/supply/axp20x_usb_power.c (renamed from drivers/power/axp20x_usb_power.c)0
-rw-r--r--drivers/power/supply/axp288_charger.c (renamed from drivers/power/axp288_charger.c)0
-rw-r--r--drivers/power/supply/axp288_fuel_gauge.c (renamed from drivers/power/axp288_fuel_gauge.c)0
-rw-r--r--drivers/power/supply/bq2415x_charger.c (renamed from drivers/power/bq2415x_charger.c)0
-rw-r--r--drivers/power/supply/bq24190_charger.c (renamed from drivers/power/bq24190_charger.c)0
-rw-r--r--drivers/power/supply/bq24257_charger.c (renamed from drivers/power/bq24257_charger.c)0
-rw-r--r--drivers/power/supply/bq24735-charger.c (renamed from drivers/power/bq24735-charger.c)0
-rw-r--r--drivers/power/supply/bq25890_charger.c (renamed from drivers/power/bq25890_charger.c)0
-rw-r--r--drivers/power/supply/bq27xxx_battery.c (renamed from drivers/power/bq27xxx_battery.c)0
-rw-r--r--drivers/power/supply/bq27xxx_battery_i2c.c (renamed from drivers/power/bq27xxx_battery_i2c.c)0
-rw-r--r--drivers/power/supply/charger-manager.c (renamed from drivers/power/charger-manager.c)0
-rw-r--r--drivers/power/supply/collie_battery.c (renamed from drivers/power/collie_battery.c)0
-rw-r--r--drivers/power/supply/da9030_battery.c (renamed from drivers/power/da9030_battery.c)0
-rw-r--r--drivers/power/supply/da9052-battery.c (renamed from drivers/power/da9052-battery.c)0
-rw-r--r--drivers/power/supply/da9150-charger.c (renamed from drivers/power/da9150-charger.c)0
-rw-r--r--drivers/power/supply/da9150-fg.c (renamed from drivers/power/da9150-fg.c)0
-rw-r--r--drivers/power/supply/ds2760_battery.c (renamed from drivers/power/ds2760_battery.c)4
-rw-r--r--drivers/power/supply/ds2780_battery.c (renamed from drivers/power/ds2780_battery.c)4
-rw-r--r--drivers/power/supply/ds2781_battery.c (renamed from drivers/power/ds2781_battery.c)4
-rw-r--r--drivers/power/supply/ds2782_battery.c (renamed from drivers/power/ds2782_battery.c)0
-rw-r--r--drivers/power/supply/generic-adc-battery.c (renamed from drivers/power/generic-adc-battery.c)0
-rw-r--r--drivers/power/supply/goldfish_battery.c (renamed from drivers/power/goldfish_battery.c)0
-rw-r--r--drivers/power/supply/gpio-charger.c (renamed from drivers/power/gpio-charger.c)0
-rw-r--r--drivers/power/supply/intel_mid_battery.c (renamed from drivers/power/intel_mid_battery.c)0
-rw-r--r--drivers/power/supply/ipaq_micro_battery.c (renamed from drivers/power/ipaq_micro_battery.c)0
-rw-r--r--drivers/power/supply/isp1704_charger.c (renamed from drivers/power/isp1704_charger.c)0
-rw-r--r--drivers/power/supply/jz4740-battery.c (renamed from drivers/power/jz4740-battery.c)0
-rw-r--r--drivers/power/supply/lp8727_charger.c (renamed from drivers/power/lp8727_charger.c)0
-rw-r--r--drivers/power/supply/lp8788-charger.c (renamed from drivers/power/lp8788-charger.c)0
-rw-r--r--drivers/power/supply/ltc2941-battery-gauge.c (renamed from drivers/power/ltc2941-battery-gauge.c)0
-rw-r--r--drivers/power/supply/max14577_charger.c (renamed from drivers/power/max14577_charger.c)0
-rw-r--r--drivers/power/supply/max17040_battery.c (renamed from drivers/power/max17040_battery.c)0
-rw-r--r--drivers/power/supply/max17042_battery.c (renamed from drivers/power/max17042_battery.c)0
-rw-r--r--drivers/power/supply/max77693_charger.c (renamed from drivers/power/max77693_charger.c)0
-rw-r--r--drivers/power/supply/max8903_charger.c (renamed from drivers/power/max8903_charger.c)0
-rw-r--r--drivers/power/supply/max8925_power.c (renamed from drivers/power/max8925_power.c)0
-rw-r--r--drivers/power/supply/max8997_charger.c (renamed from drivers/power/max8997_charger.c)0
-rw-r--r--drivers/power/supply/max8998_charger.c (renamed from drivers/power/max8998_charger.c)0
-rw-r--r--drivers/power/supply/olpc_battery.c (renamed from drivers/power/olpc_battery.c)0
-rw-r--r--drivers/power/supply/pcf50633-charger.c (renamed from drivers/power/pcf50633-charger.c)0
-rw-r--r--drivers/power/supply/pda_power.c (renamed from drivers/power/pda_power.c)0
-rw-r--r--drivers/power/supply/pm2301_charger.c (renamed from drivers/power/pm2301_charger.c)0
-rw-r--r--drivers/power/supply/pm2301_charger.h (renamed from drivers/power/pm2301_charger.h)0
-rw-r--r--drivers/power/supply/pmu_battery.c (renamed from drivers/power/pmu_battery.c)0
-rw-r--r--drivers/power/supply/power_supply.h (renamed from drivers/power/power_supply.h)0
-rw-r--r--drivers/power/supply/power_supply_core.c (renamed from drivers/power/power_supply_core.c)0
-rw-r--r--drivers/power/supply/power_supply_leds.c (renamed from drivers/power/power_supply_leds.c)0
-rw-r--r--drivers/power/supply/power_supply_sysfs.c (renamed from drivers/power/power_supply_sysfs.c)0
-rw-r--r--drivers/power/supply/qcom_smbb.c (renamed from drivers/power/qcom_smbb.c)0
-rw-r--r--drivers/power/supply/rt5033_battery.c (renamed from drivers/power/rt5033_battery.c)0
-rw-r--r--drivers/power/supply/rt9455_charger.c (renamed from drivers/power/rt9455_charger.c)0
-rw-r--r--drivers/power/supply/rx51_battery.c (renamed from drivers/power/rx51_battery.c)0
-rw-r--r--drivers/power/supply/s3c_adc_battery.c (renamed from drivers/power/s3c_adc_battery.c)0
-rw-r--r--drivers/power/supply/sbs-battery.c (renamed from drivers/power/sbs-battery.c)0
-rw-r--r--drivers/power/supply/smb347-charger.c (renamed from drivers/power/smb347-charger.c)0
-rw-r--r--drivers/power/supply/test_power.c (renamed from drivers/power/test_power.c)0
-rw-r--r--drivers/power/supply/tosa_battery.c (renamed from drivers/power/tosa_battery.c)0
-rw-r--r--drivers/power/supply/tps65090-charger.c (renamed from drivers/power/tps65090-charger.c)0
-rw-r--r--drivers/power/supply/tps65217_charger.c (renamed from drivers/power/tps65217_charger.c)0
-rw-r--r--drivers/power/supply/twl4030_charger.c (renamed from drivers/power/twl4030_charger.c)0
-rw-r--r--drivers/power/supply/twl4030_madc_battery.c (renamed from drivers/power/twl4030_madc_battery.c)0
-rw-r--r--drivers/power/supply/wm831x_backup.c (renamed from drivers/power/wm831x_backup.c)0
-rw-r--r--drivers/power/supply/wm831x_power.c (renamed from drivers/power/wm831x_power.c)0
-rw-r--r--drivers/power/supply/wm8350_power.c (renamed from drivers/power/wm8350_power.c)0
-rw-r--r--drivers/power/supply/wm97xx_battery.c (renamed from drivers/power/wm97xx_battery.c)2
-rw-r--r--drivers/power/supply/z2_battery.c (renamed from drivers/power/z2_battery.c)0
81 files changed, 624 insertions, 616 deletions
diff --git a/Documentation/power/power_supply_class.txt b/Documentation/power/power_supply_class.txt
index 82dacc06e355..0c72588bd967 100644
--- a/Documentation/power/power_supply_class.txt
+++ b/Documentation/power/power_supply_class.txt
@@ -39,8 +39,8 @@ kind of power supply, and can process/present them to a user in consistent
39manner. Results for different power supplies and machines are also directly 39manner. Results for different power supplies and machines are also directly
40comparable. 40comparable.
41 41
42See drivers/power/ds2760_battery.c and drivers/power/pda_power.c for the 42See drivers/power/supply/ds2760_battery.c and drivers/power/supply/pda_power.c
43example how to declare and handle attributes. 43for the example how to declare and handle attributes.
44 44
45 45
46Units 46Units
diff --git a/MAINTAINERS b/MAINTAINERS
index 20bb1d00098c..ca66b4140c50 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3751,8 +3751,8 @@ F: drivers/leds/leds-da90??.c
3751F: drivers/mfd/da903x.c 3751F: drivers/mfd/da903x.c
3752F: drivers/mfd/da90??-*.c 3752F: drivers/mfd/da90??-*.c
3753F: drivers/mfd/da91??-*.c 3753F: drivers/mfd/da91??-*.c
3754F: drivers/power/da9052-battery.c 3754F: drivers/power/supply/da9052-battery.c
3755F: drivers/power/da91??-*.c 3755F: drivers/power/supply/da91??-*.c
3756F: drivers/regulator/da903x.c 3756F: drivers/regulator/da903x.c
3757F: drivers/regulator/da9???-regulator.[ch] 3757F: drivers/regulator/da9???-regulator.[ch]
3758F: drivers/rtc/rtc-da90??.c 3758F: drivers/rtc/rtc-da90??.c
@@ -7451,8 +7451,8 @@ MAXIM MUIC CHARGER DRIVERS FOR EXYNOS BASED BOARDS
7451M: Krzysztof Kozlowski <k.kozlowski@samsung.com> 7451M: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7452L: linux-pm@vger.kernel.org 7452L: linux-pm@vger.kernel.org
7453S: Supported 7453S: Supported
7454F: drivers/power/max14577_charger.c 7454F: drivers/power/supply/max14577_charger.c
7455F: drivers/power/max77693_charger.c 7455F: drivers/power/supply/max77693_charger.c
7456 7456
7457MAXIM MAX77802 MULTIFUNCTION PMIC DEVICE DRIVERS 7457MAXIM MAX77802 MULTIFUNCTION PMIC DEVICE DRIVERS
7458M: Javier Martinez Canillas <javier@osg.samsung.com> 7458M: Javier Martinez Canillas <javier@osg.samsung.com>
@@ -8323,11 +8323,11 @@ R: Pali Rohár <pali.rohar@gmail.com>
8323F: include/linux/power/bq2415x_charger.h 8323F: include/linux/power/bq2415x_charger.h
8324F: include/linux/power/bq27xxx_battery.h 8324F: include/linux/power/bq27xxx_battery.h
8325F: include/linux/power/isp1704_charger.h 8325F: include/linux/power/isp1704_charger.h
8326F: drivers/power/bq2415x_charger.c 8326F: drivers/power/supply/bq2415x_charger.c
8327F: drivers/power/bq27xxx_battery.c 8327F: drivers/power/supply/bq27xxx_battery.c
8328F: drivers/power/bq27xxx_battery_i2c.c 8328F: drivers/power/supply/bq27xxx_battery_i2c.c
8329F: drivers/power/isp1704_charger.c 8329F: drivers/power/supply/isp1704_charger.c
8330F: drivers/power/rx51_battery.c 8330F: drivers/power/supply/rx51_battery.c
8331 8331
8332NTB DRIVER CORE 8332NTB DRIVER CORE
8333M: Jon Mason <jdmason@kudzu.us> 8333M: Jon Mason <jdmason@kudzu.us>
@@ -9334,8 +9334,7 @@ S: Maintained
9334F: Documentation/devicetree/bindings/power/ 9334F: Documentation/devicetree/bindings/power/
9335F: Documentation/devicetree/bindings/power_supply/ 9335F: Documentation/devicetree/bindings/power_supply/
9336F: include/linux/power_supply.h 9336F: include/linux/power_supply.h
9337F: drivers/power/ 9337F: drivers/power/supply/
9338X: drivers/power/avs/
9339 9338
9340POWER STATE COORDINATION INTERFACE (PSCI) 9339POWER STATE COORDINATION INTERFACE (PSCI)
9341M: Mark Rutland <mark.rutland@arm.com> 9340M: Mark Rutland <mark.rutland@arm.com>
@@ -10322,8 +10321,8 @@ F: drivers/thunderbolt/
10322TI BQ27XXX POWER SUPPLY DRIVER 10321TI BQ27XXX POWER SUPPLY DRIVER
10323R: Andrew F. Davis <afd@ti.com> 10322R: Andrew F. Davis <afd@ti.com>
10324F: include/linux/power/bq27xxx_battery.h 10323F: include/linux/power/bq27xxx_battery.h
10325F: drivers/power/bq27xxx_battery.c 10324F: drivers/power/supply/bq27xxx_battery.c
10326F: drivers/power/bq27xxx_battery_i2c.c 10325F: drivers/power/supply/bq27xxx_battery_i2c.c
10327 10326
10328TIMEKEEPING, CLOCKSOURCE CORE, NTP, ALARMTIMER 10327TIMEKEEPING, CLOCKSOURCE CORE, NTP, ALARMTIMER
10329M: John Stultz <john.stultz@linaro.org> 10328M: John Stultz <john.stultz@linaro.org>
@@ -11329,6 +11328,16 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
11329S: Supported 11328S: Supported
11330F: drivers/mfd/syscon.c 11329F: drivers/mfd/syscon.c
11331 11330
11331SYSTEM RESET/SHUTDOWN DRIVERS
11332M: Sebastian Reichel <sre@kernel.org>
11333M: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
11334M: David Woodhouse <dwmw2@infradead.org>
11335L: linux-pm@vger.kernel.org
11336T: git git://git.infradead.org/battery-2.6.git
11337S: Maintained
11338F: Documentation/devicetree/bindings/power/reset/
11339F: drivers/power/reset/
11340
11332SYSV FILESYSTEM 11341SYSV FILESYSTEM
11333M: Christoph Hellwig <hch@infradead.org> 11342M: Christoph Hellwig <hch@infradead.org>
11334S: Maintained 11343S: Maintained
@@ -11677,7 +11686,7 @@ F: include/linux/platform_data/lp855x.h
11677TI LP8727 CHARGER DRIVER 11686TI LP8727 CHARGER DRIVER
11678M: Milo Kim <milo.kim@ti.com> 11687M: Milo Kim <milo.kim@ti.com>
11679S: Maintained 11688S: Maintained
11680F: drivers/power/lp8727_charger.c 11689F: drivers/power/supply/lp8727_charger.c
11681F: include/linux/platform_data/lp8727.h 11690F: include/linux/platform_data/lp8727.h
11682 11691
11683TI LP8788 MFD DRIVER 11692TI LP8788 MFD DRIVER
@@ -11686,7 +11695,7 @@ S: Maintained
11686F: drivers/iio/adc/lp8788_adc.c 11695F: drivers/iio/adc/lp8788_adc.c
11687F: drivers/leds/leds-lp8788.c 11696F: drivers/leds/leds-lp8788.c
11688F: drivers/mfd/lp8788*.c 11697F: drivers/mfd/lp8788*.c
11689F: drivers/power/lp8788-charger.c 11698F: drivers/power/supply/lp8788-charger.c
11690F: drivers/regulator/lp8788-*.c 11699F: drivers/regulator/lp8788-*.c
11691F: include/linux/mfd/lp8788*.h 11700F: include/linux/mfd/lp8788*.h
11692 11701
@@ -12762,7 +12771,7 @@ F: drivers/input/touchscreen/wm97*.c
12762F: drivers/mfd/arizona* 12771F: drivers/mfd/arizona*
12763F: drivers/mfd/wm*.c 12772F: drivers/mfd/wm*.c
12764F: drivers/mfd/cs47l24* 12773F: drivers/mfd/cs47l24*
12765F: drivers/power/wm83*.c 12774F: drivers/power/supply/wm83*.c
12766F: drivers/rtc/rtc-wm83*.c 12775F: drivers/rtc/rtc-wm83*.c
12767F: drivers/regulator/wm8*.c 12776F: drivers/regulator/wm8*.c
12768F: drivers/video/backlight/wm83*_bl.c 12777F: drivers/video/backlight/wm83*_bl.c
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index acd4a1524a1e..63454b5cac27 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -1,517 +1,3 @@
1menuconfig POWER_SUPPLY
2 bool "Power supply class support"
3 help
4 Say Y here to enable power supply class support. This allows
5 power supply (batteries, AC, USB) monitoring by userspace
6 via sysfs and uevent (if available) and/or APM kernel interface
7 (if selected below).
8
9if POWER_SUPPLY
10
11config POWER_SUPPLY_DEBUG
12 bool "Power supply debug"
13 help
14 Say Y here to enable debugging messages for power supply class
15 and drivers.
16
17config PDA_POWER
18 tristate "Generic PDA/phone power driver"
19 depends on !S390
20 help
21 Say Y here to enable generic power driver for PDAs and phones with
22 one or two external power supplies (AC/USB) connected to main and
23 backup batteries, and optional builtin charger.
24
25config APM_POWER
26 tristate "APM emulation for class batteries"
27 depends on APM_EMULATION
28 help
29 Say Y here to enable support APM status emulation using
30 battery class devices.
31
32config GENERIC_ADC_BATTERY
33 tristate "Generic battery support using IIO"
34 depends on IIO
35 help
36 Say Y here to enable support for the generic battery driver
37 which uses IIO framework to read adc.
38
39config MAX8925_POWER
40 tristate "MAX8925 battery charger support"
41 depends on MFD_MAX8925
42 help
43 Say Y here to enable support for the battery charger in the Maxim
44 MAX8925 PMIC.
45
46config WM831X_BACKUP
47 tristate "WM831X backup battery charger support"
48 depends on MFD_WM831X
49 help
50 Say Y here to enable support for the backup battery charger
51 in the Wolfson Microelectronics WM831x PMICs.
52
53config WM831X_POWER
54 tristate "WM831X PMU support"
55 depends on MFD_WM831X
56 help
57 Say Y here to enable support for the power management unit
58 provided by Wolfson Microelectronics WM831x PMICs.
59
60config WM8350_POWER
61 tristate "WM8350 PMU support"
62 depends on MFD_WM8350
63 help
64 Say Y here to enable support for the power management unit
65 provided by the Wolfson Microelectronics WM8350 PMIC.
66
67config TEST_POWER
68 tristate "Test power driver"
69 help
70 This driver is used for testing. It's safe to say M here.
71
72config BATTERY_88PM860X
73 tristate "Marvell 88PM860x battery driver"
74 depends on MFD_88PM860X
75 help
76 Say Y here to enable battery monitor for Marvell 88PM860x chip.
77
78config BATTERY_ACT8945A
79 tristate "Active-semi ACT8945A charger driver"
80 depends on MFD_ACT8945A || COMPILE_TEST
81 help
82 Say Y here to enable support for power supply provided by
83 Active-semi ActivePath ACT8945A charger.
84
85config BATTERY_DS2760
86 tristate "DS2760 battery driver (HP iPAQ & others)"
87 depends on W1 && W1_SLAVE_DS2760
88 help
89 Say Y here to enable support for batteries with ds2760 chip.
90
91config BATTERY_DS2780
92 tristate "DS2780 battery driver"
93 depends on HAS_IOMEM
94 select W1
95 select W1_SLAVE_DS2780
96 help
97 Say Y here to enable support for batteries with ds2780 chip.
98
99config BATTERY_DS2781
100 tristate "DS2781 battery driver"
101 depends on HAS_IOMEM
102 select W1
103 select W1_SLAVE_DS2781
104 help
105 If you enable this you will have the DS2781 battery driver support.
106
107 The battery monitor chip is used in many batteries/devices
108 as the one who is responsible for charging/discharging/monitoring
109 Li+ batteries.
110
111 If you are unsure, say N.
112
113config BATTERY_DS2782
114 tristate "DS2782/DS2786 standalone gas-gauge"
115 depends on I2C
116 help
117 Say Y here to enable support for the DS2782/DS2786 standalone battery
118 gas-gauge.
119
120config BATTERY_PMU
121 tristate "Apple PMU battery"
122 depends on PPC32 && ADB_PMU
123 help
124 Say Y here to expose battery information on Apple machines
125 through the generic battery class.
126
127config BATTERY_OLPC
128 tristate "One Laptop Per Child battery"
129 depends on X86_32 && OLPC
130 help
131 Say Y to enable support for the battery on the OLPC laptop.
132
133config BATTERY_TOSA
134 tristate "Sharp SL-6000 (tosa) battery"
135 depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
136 help
137 Say Y to enable support for the battery on the Sharp Zaurus
138 SL-6000 (tosa) models.
139
140config BATTERY_COLLIE
141 tristate "Sharp SL-5500 (collie) battery"
142 depends on SA1100_COLLIE && MCP_UCB1200
143 help
144 Say Y to enable support for the battery on the Sharp Zaurus
145 SL-5500 (collie) models.
146
147config BATTERY_IPAQ_MICRO
148 tristate "iPAQ Atmel Micro ASIC battery driver"
149 depends on MFD_IPAQ_MICRO
150 help
151 Choose this option if you want to monitor battery status on
152 Compaq/HP iPAQ h3100 and h3600.
153
154config BATTERY_WM97XX
155 bool "WM97xx generic battery driver"
156 depends on TOUCHSCREEN_WM97XX=y
157 help
158 Say Y to enable support for battery measured by WM97xx aux port.
159
160config BATTERY_SBS
161 tristate "SBS Compliant gas gauge"
162 depends on I2C
163 help
164 Say Y to include support for SBS battery driver for SBS-compliant
165 gas gauges.
166
167config BATTERY_BQ27XXX
168 tristate "BQ27xxx battery driver"
169 help
170 Say Y here to enable support for batteries with BQ27xxx chips.
171
172config BATTERY_BQ27XXX_I2C
173 tristate "BQ27xxx I2C support"
174 depends on BATTERY_BQ27XXX
175 depends on I2C
176 default y
177 help
178 Say Y here to enable support for batteries with BQ27xxx chips
179 connected over an I2C bus.
180
181config BATTERY_DA9030
182 tristate "DA9030 battery driver"
183 depends on PMIC_DA903X
184 help
185 Say Y here to enable support for batteries charger integrated into
186 DA9030 PMIC.
187
188config BATTERY_DA9052
189 tristate "Dialog DA9052 Battery"
190 depends on PMIC_DA9052
191 help
192 Say Y here to enable support for batteries charger integrated into
193 DA9052 PMIC.
194
195config CHARGER_DA9150
196 tristate "Dialog Semiconductor DA9150 Charger support"
197 depends on MFD_DA9150
198 depends on DA9150_GPADC
199 depends on IIO
200 help
201 Say Y here to enable support for charger unit of the DA9150
202 Integrated Charger & Fuel-Gauge IC.
203
204 This driver can also be built as a module. If so, the module will be
205 called da9150-charger.
206
207config BATTERY_DA9150
208 tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
209 depends on MFD_DA9150
210 help
211 Say Y here to enable support for the Fuel-Gauge unit of the DA9150
212 Integrated Charger & Fuel-Gauge IC
213
214 This driver can also be built as a module. If so, the module will be
215 called da9150-fg.
216
217config AXP288_CHARGER
218 tristate "X-Powers AXP288 Charger"
219 depends on MFD_AXP20X && EXTCON_AXP288
220 help
221 Say yes here to have support X-Power AXP288 power management IC (PMIC)
222 integrated charger.
223
224config AXP288_FUEL_GAUGE
225 tristate "X-Powers AXP288 Fuel Gauge"
226 depends on MFD_AXP20X && IIO
227 help
228 Say yes here to have support for X-Power power management IC (PMIC)
229 Fuel Gauge. The device provides battery statistics and status
230 monitoring as well as alerts for battery over/under voltage and
231 over/under temperature.
232
233config BATTERY_MAX17040
234 tristate "Maxim MAX17040 Fuel Gauge"
235 depends on I2C
236 help
237 MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
238 in handheld and portable equipment. The MAX17040 is configured
239 to operate with a single lithium cell
240
241config BATTERY_MAX17042
242 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
243 depends on I2C
244 select REGMAP_I2C
245 help
246 MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
247 in handheld and portable equipment. The MAX17042 is configured
248 to operate with a single lithium cell. MAX8997 and MAX8966 are
249 multi-function devices that include fuel gauages that are compatible
250 with MAX17042. This driver also supports max17047/50 chips which are
251 improved version of max17042.
252
253config BATTERY_Z2
254 tristate "Z2 battery driver"
255 depends on I2C && MACH_ZIPIT2
256 help
257 Say Y to include support for the battery on the Zipit Z2.
258
259config BATTERY_S3C_ADC
260 tristate "Battery driver for Samsung ADC based monitoring"
261 depends on S3C_ADC
262 help
263 Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
264
265config BATTERY_TWL4030_MADC
266 tristate "TWL4030 MADC battery driver"
267 depends on TWL4030_MADC
268 help
269 Say Y here to enable this dumb driver for batteries managed
270 through the TWL4030 MADC.
271
272config CHARGER_88PM860X
273 tristate "Marvell 88PM860x Charger driver"
274 depends on MFD_88PM860X && BATTERY_88PM860X
275 help
276 Say Y here to enable charger for Marvell 88PM860x chip.
277
278config CHARGER_PCF50633
279 tristate "NXP PCF50633 MBC"
280 depends on MFD_PCF50633
281 help
282 Say Y to include support for NXP PCF50633 Main Battery Charger.
283
284config BATTERY_JZ4740
285 tristate "Ingenic JZ4740 battery"
286 depends on MACH_JZ4740
287 depends on MFD_JZ4740_ADC
288 help
289 Say Y to enable support for the battery on Ingenic JZ4740 based
290 boards.
291
292 This driver can be build as a module. If so, the module will be
293 called jz4740-battery.
294
295config BATTERY_INTEL_MID
296 tristate "Battery driver for Intel MID platforms"
297 depends on INTEL_SCU_IPC && SPI
298 help
299 Say Y here to enable the battery driver on Intel MID
300 platforms.
301
302config BATTERY_RX51
303 tristate "Nokia RX-51 (N900) battery driver"
304 depends on TWL4030_MADC
305 help
306 Say Y here to enable support for battery information on Nokia
307 RX-51, also known as N900 tablet.
308
309config CHARGER_ISP1704
310 tristate "ISP1704 USB Charger Detection"
311 depends on USB_PHY
312 depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
313 help
314 Say Y to enable support for USB Charger Detection with
315 ISP1707/ISP1704 USB transceivers.
316
317config CHARGER_MAX8903
318 tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
319 help
320 Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
321 The driver supports controlling charger-enable and current-limit
322 pins based on the status of charger connections with interrupt
323 handlers.
324
325config CHARGER_TWL4030
326 tristate "OMAP TWL4030 BCI charger driver"
327 depends on IIO && TWL4030_CORE
328 help
329 Say Y here to enable support for TWL4030 Battery Charge Interface.
330
331config CHARGER_LP8727
332 tristate "TI/National Semiconductor LP8727 charger driver"
333 depends on I2C
334 help
335 Say Y here to enable support for LP8727 Charger Driver.
336
337config CHARGER_LP8788
338 tristate "TI LP8788 charger driver"
339 depends on MFD_LP8788
340 depends on LP8788_ADC
341 depends on IIO
342 help
343 Say Y to enable support for the LP8788 linear charger.
344
345config CHARGER_GPIO
346 tristate "GPIO charger"
347 depends on GPIOLIB || COMPILE_TEST
348 help
349 Say Y to include support for chargers which report their online status
350 through a GPIO pin.
351
352 This driver can be build as a module. If so, the module will be
353 called gpio-charger.
354
355config CHARGER_MANAGER
356 bool "Battery charger manager for multiple chargers"
357 depends on REGULATOR
358 select EXTCON
359 help
360 Say Y to enable charger-manager support, which allows multiple
361 chargers attached to a battery and multiple batteries attached to a
362 system. The charger-manager also can monitor charging status in
363 runtime and in suspend-to-RAM by waking up the system periodically
364 with help of suspend_again support.
365
366config CHARGER_MAX14577
367 tristate "Maxim MAX14577/77836 battery charger driver"
368 depends on MFD_MAX14577
369 help
370 Say Y to enable support for the battery charger control sysfs and
371 platform data of MAX14577/77836 MUICs.
372
373config CHARGER_MAX77693
374 tristate "Maxim MAX77693 battery charger driver"
375 depends on MFD_MAX77693
376 help
377 Say Y to enable support for the Maxim MAX77693 battery charger.
378
379config CHARGER_MAX8997
380 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
381 depends on MFD_MAX8997 && REGULATOR_MAX8997
382 help
383 Say Y to enable support for the battery charger control sysfs and
384 platform data of MAX8997/LP3974 PMICs.
385
386config CHARGER_MAX8998
387 tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
388 depends on MFD_MAX8998 && REGULATOR_MAX8998
389 help
390 Say Y to enable support for the battery charger control sysfs and
391 platform data of MAX8998/LP3974 PMICs.
392
393config CHARGER_QCOM_SMBB
394 tristate "Qualcomm Switch-Mode Battery Charger and Boost"
395 depends on MFD_SPMI_PMIC || COMPILE_TEST
396 depends on OF
397 depends on EXTCON
398 help
399 Say Y to include support for the Switch-Mode Battery Charger and
400 Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
401 is an integrated, single-cell lithium-ion battery charger. DT
402 configuration is required for loading, see the devicetree
403 documentation for more detail. The base name for this driver is
404 'pm8941_charger'.
405
406config CHARGER_BQ2415X
407 tristate "TI BQ2415x battery charger driver"
408 depends on I2C
409 help
410 Say Y to enable support for the TI BQ2415x battery charger
411 PMICs.
412
413 You'll need this driver to charge batteries on e.g. Nokia
414 RX-51/N900.
415
416config CHARGER_BQ24190
417 tristate "TI BQ24190 battery charger driver"
418 depends on I2C
419 depends on GPIOLIB || COMPILE_TEST
420 help
421 Say Y to enable support for the TI BQ24190 battery charger.
422
423config CHARGER_BQ24257
424 tristate "TI BQ24250/24251/24257 battery charger driver"
425 depends on I2C
426 depends on GPIOLIB || COMPILE_TEST
427 depends on REGMAP_I2C
428 help
429 Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
430 chargers.
431
432config CHARGER_BQ24735
433 tristate "TI BQ24735 battery charger support"
434 depends on I2C
435 depends on GPIOLIB || COMPILE_TEST
436 help
437 Say Y to enable support for the TI BQ24735 battery charger.
438
439config CHARGER_BQ25890
440 tristate "TI BQ25890 battery charger driver"
441 depends on I2C
442 depends on GPIOLIB || COMPILE_TEST
443 select REGMAP_I2C
444 help
445 Say Y to enable support for the TI BQ25890 battery charger.
446
447config CHARGER_SMB347
448 tristate "Summit Microelectronics SMB347 Battery Charger"
449 depends on I2C
450 select REGMAP_I2C
451 help
452 Say Y to include support for Summit Microelectronics SMB347
453 Battery Charger.
454
455config CHARGER_TPS65090
456 tristate "TPS65090 battery charger driver"
457 depends on MFD_TPS65090
458 help
459 Say Y here to enable support for battery charging with TPS65090
460 PMIC chips.
461
462config CHARGER_TPS65217
463 tristate "TPS65217 battery charger driver"
464 depends on MFD_TPS65217
465 help
466 Say Y here to enable support for battery charging with TPS65217
467 PMIC chips.
468
469config BATTERY_GAUGE_LTC2941
470 tristate "LTC2941/LTC2943 Battery Gauge Driver"
471 depends on I2C
472 help
473 Say Y here to include support for LTC2941 and LTC2943 Battery
474 Gauge IC. The driver reports the charge count continuously, and
475 measures the voltage and temperature every 10 seconds.
476
477config AB8500_BM
478 bool "AB8500 Battery Management Driver"
479 depends on AB8500_CORE && AB8500_GPADC
480 help
481 Say Y to include support for AB8500 battery management.
482
483config BATTERY_GOLDFISH
484 tristate "Goldfish battery driver"
485 depends on GOLDFISH || COMPILE_TEST
486 depends on HAS_IOMEM
487 help
488 Say Y to enable support for the battery and AC power in the
489 Goldfish emulator.
490
491config BATTERY_RT5033
492 tristate "RT5033 fuel gauge support"
493 depends on MFD_RT5033
494 help
495 This adds support for battery fuel gauge in Richtek RT5033 PMIC.
496 The fuelgauge calculates and determines the battery state of charge
497 according to battery open circuit voltage.
498
499config CHARGER_RT9455
500 tristate "Richtek RT9455 battery charger driver"
501 depends on I2C
502 depends on GPIOLIB || COMPILE_TEST
503 select REGMAP_I2C
504 help
505 Say Y to enable support for Richtek RT9455 battery charger.
506
507config AXP20X_POWER
508 tristate "AXP20x power supply driver"
509 depends on MFD_AXP20X
510 help
511 This driver provides support for the power supply features of
512 AXP20x PMIC.
513
514endif # POWER_SUPPLY
515
516source "drivers/power/reset/Kconfig"
517source "drivers/power/avs/Kconfig" 1source "drivers/power/avs/Kconfig"
2source "drivers/power/reset/Kconfig"
3source "drivers/power/supply/Kconfig"
diff --git a/drivers/power/Makefile b/drivers/power/Makefile
index e46b75d448a5..ff35c712d824 100644
--- a/drivers/power/Makefile
+++ b/drivers/power/Makefile
@@ -1,76 +1,3 @@
1subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
2
3power_supply-y := power_supply_core.o
4power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
5power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
6
7obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
8obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
9
10obj-$(CONFIG_PDA_POWER) += pda_power.o
11obj-$(CONFIG_APM_POWER) += apm_power.o
12obj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o
13obj-$(CONFIG_MAX8925_POWER) += max8925_power.o
14obj-$(CONFIG_WM831X_BACKUP) += wm831x_backup.o
15obj-$(CONFIG_WM831X_POWER) += wm831x_power.o
16obj-$(CONFIG_WM8350_POWER) += wm8350_power.o
17obj-$(CONFIG_TEST_POWER) += test_power.o
18
19obj-$(CONFIG_BATTERY_88PM860X) += 88pm860x_battery.o
20obj-$(CONFIG_BATTERY_ACT8945A) += act8945a_charger.o
21obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o
22obj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o
23obj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o
24obj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o
25obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o
26obj-$(CONFIG_BATTERY_GOLDFISH) += goldfish_battery.o
27obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
28obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o
29obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o
30obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o
31obj-$(CONFIG_BATTERY_IPAQ_MICRO) += ipaq_micro_battery.o
32obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
33obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
34obj-$(CONFIG_BATTERY_BQ27XXX) += bq27xxx_battery.o
35obj-$(CONFIG_BATTERY_BQ27XXX_I2C) += bq27xxx_battery_i2c.o
36obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
37obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
38obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o
39obj-$(CONFIG_BATTERY_DA9150) += da9150-fg.o
40obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
41obj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o
42obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
43obj-$(CONFIG_BATTERY_RT5033) += rt5033_battery.o
44obj-$(CONFIG_CHARGER_RT9455) += rt9455_charger.o
45obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o
46obj-$(CONFIG_BATTERY_TWL4030_MADC) += twl4030_madc_battery.o
47obj-$(CONFIG_CHARGER_88PM860X) += 88pm860x_charger.o
48obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
49obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
50obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
51obj-$(CONFIG_BATTERY_RX51) += rx51_battery.o
52obj-$(CONFIG_AB8500_BM) += ab8500_bmdata.o ab8500_charger.o ab8500_fg.o ab8500_btemp.o abx500_chargalg.o pm2301_charger.o
53obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
54obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
55obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
56obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
57obj-$(CONFIG_CHARGER_LP8788) += lp8788-charger.o
58obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
59obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
60obj-$(CONFIG_CHARGER_MAX14577) += max14577_charger.o
61obj-$(CONFIG_CHARGER_MAX77693) += max77693_charger.o
62obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
63obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
64obj-$(CONFIG_CHARGER_QCOM_SMBB) += qcom_smbb.o
65obj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o
66obj-$(CONFIG_CHARGER_BQ24190) += bq24190_charger.o
67obj-$(CONFIG_CHARGER_BQ24257) += bq24257_charger.o
68obj-$(CONFIG_CHARGER_BQ24735) += bq24735-charger.o
69obj-$(CONFIG_CHARGER_BQ25890) += bq25890_charger.o
70obj-$(CONFIG_POWER_AVS) += avs/ 1obj-$(CONFIG_POWER_AVS) += avs/
71obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
72obj-$(CONFIG_CHARGER_TPS65090) += tps65090-charger.o
73obj-$(CONFIG_CHARGER_TPS65217) += tps65217_charger.o
74obj-$(CONFIG_POWER_RESET) += reset/ 2obj-$(CONFIG_POWER_RESET) += reset/
75obj-$(CONFIG_AXP288_FUEL_GAUGE) += axp288_fuel_gauge.o 3obj-$(CONFIG_POWER_SUPPLY) += supply/
76obj-$(CONFIG_AXP288_CHARGER) += axp288_charger.o
diff --git a/drivers/power/88pm860x_battery.c b/drivers/power/supply/88pm860x_battery.c
index 63c57dc82ac1..63c57dc82ac1 100644
--- a/drivers/power/88pm860x_battery.c
+++ b/drivers/power/supply/88pm860x_battery.c
diff --git a/drivers/power/88pm860x_charger.c b/drivers/power/supply/88pm860x_charger.c
index 2b82e44d9027..2b82e44d9027 100644
--- a/drivers/power/88pm860x_charger.c
+++ b/drivers/power/supply/88pm860x_charger.c
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
new file mode 100644
index 000000000000..76806a0be820
--- /dev/null
+++ b/drivers/power/supply/Kconfig
@@ -0,0 +1,514 @@
1menuconfig POWER_SUPPLY
2 bool "Power supply class support"
3 help
4 Say Y here to enable power supply class support. This allows
5 power supply (batteries, AC, USB) monitoring by userspace
6 via sysfs and uevent (if available) and/or APM kernel interface
7 (if selected below).
8
9if POWER_SUPPLY
10
11config POWER_SUPPLY_DEBUG
12 bool "Power supply debug"
13 help
14 Say Y here to enable debugging messages for power supply class
15 and drivers.
16
17config PDA_POWER
18 tristate "Generic PDA/phone power driver"
19 depends on !S390
20 help
21 Say Y here to enable generic power driver for PDAs and phones with
22 one or two external power supplies (AC/USB) connected to main and
23 backup batteries, and optional builtin charger.
24
25config APM_POWER
26 tristate "APM emulation for class batteries"
27 depends on APM_EMULATION
28 help
29 Say Y here to enable support APM status emulation using
30 battery class devices.
31
32config GENERIC_ADC_BATTERY
33 tristate "Generic battery support using IIO"
34 depends on IIO
35 help
36 Say Y here to enable support for the generic battery driver
37 which uses IIO framework to read adc.
38
39config MAX8925_POWER
40 tristate "MAX8925 battery charger support"
41 depends on MFD_MAX8925
42 help
43 Say Y here to enable support for the battery charger in the Maxim
44 MAX8925 PMIC.
45
46config WM831X_BACKUP
47 tristate "WM831X backup battery charger support"
48 depends on MFD_WM831X
49 help
50 Say Y here to enable support for the backup battery charger
51 in the Wolfson Microelectronics WM831x PMICs.
52
53config WM831X_POWER
54 tristate "WM831X PMU support"
55 depends on MFD_WM831X
56 help
57 Say Y here to enable support for the power management unit
58 provided by Wolfson Microelectronics WM831x PMICs.
59
60config WM8350_POWER
61 tristate "WM8350 PMU support"
62 depends on MFD_WM8350
63 help
64 Say Y here to enable support for the power management unit
65 provided by the Wolfson Microelectronics WM8350 PMIC.
66
67config TEST_POWER
68 tristate "Test power driver"
69 help
70 This driver is used for testing. It's safe to say M here.
71
72config BATTERY_88PM860X
73 tristate "Marvell 88PM860x battery driver"
74 depends on MFD_88PM860X
75 help
76 Say Y here to enable battery monitor for Marvell 88PM860x chip.
77
78config BATTERY_ACT8945A
79 tristate "Active-semi ACT8945A charger driver"
80 depends on MFD_ACT8945A || COMPILE_TEST
81 help
82 Say Y here to enable support for power supply provided by
83 Active-semi ActivePath ACT8945A charger.
84
85config BATTERY_DS2760
86 tristate "DS2760 battery driver (HP iPAQ & others)"
87 depends on W1 && W1_SLAVE_DS2760
88 help
89 Say Y here to enable support for batteries with ds2760 chip.
90
91config BATTERY_DS2780
92 tristate "DS2780 battery driver"
93 depends on HAS_IOMEM
94 select W1
95 select W1_SLAVE_DS2780
96 help
97 Say Y here to enable support for batteries with ds2780 chip.
98
99config BATTERY_DS2781
100 tristate "DS2781 battery driver"
101 depends on HAS_IOMEM
102 select W1
103 select W1_SLAVE_DS2781
104 help
105 If you enable this you will have the DS2781 battery driver support.
106
107 The battery monitor chip is used in many batteries/devices
108 as the one who is responsible for charging/discharging/monitoring
109 Li+ batteries.
110
111 If you are unsure, say N.
112
113config BATTERY_DS2782
114 tristate "DS2782/DS2786 standalone gas-gauge"
115 depends on I2C
116 help
117 Say Y here to enable support for the DS2782/DS2786 standalone battery
118 gas-gauge.
119
120config BATTERY_PMU
121 tristate "Apple PMU battery"
122 depends on PPC32 && ADB_PMU
123 help
124 Say Y here to expose battery information on Apple machines
125 through the generic battery class.
126
127config BATTERY_OLPC
128 tristate "One Laptop Per Child battery"
129 depends on X86_32 && OLPC
130 help
131 Say Y to enable support for the battery on the OLPC laptop.
132
133config BATTERY_TOSA
134 tristate "Sharp SL-6000 (tosa) battery"
135 depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
136 help
137 Say Y to enable support for the battery on the Sharp Zaurus
138 SL-6000 (tosa) models.
139
140config BATTERY_COLLIE
141 tristate "Sharp SL-5500 (collie) battery"
142 depends on SA1100_COLLIE && MCP_UCB1200
143 help
144 Say Y to enable support for the battery on the Sharp Zaurus
145 SL-5500 (collie) models.
146
147config BATTERY_IPAQ_MICRO
148 tristate "iPAQ Atmel Micro ASIC battery driver"
149 depends on MFD_IPAQ_MICRO
150 help
151 Choose this option if you want to monitor battery status on
152 Compaq/HP iPAQ h3100 and h3600.
153
154config BATTERY_WM97XX
155 bool "WM97xx generic battery driver"
156 depends on TOUCHSCREEN_WM97XX=y
157 help
158 Say Y to enable support for battery measured by WM97xx aux port.
159
160config BATTERY_SBS
161 tristate "SBS Compliant gas gauge"
162 depends on I2C
163 help
164 Say Y to include support for SBS battery driver for SBS-compliant
165 gas gauges.
166
167config BATTERY_BQ27XXX
168 tristate "BQ27xxx battery driver"
169 help
170 Say Y here to enable support for batteries with BQ27xxx chips.
171
172config BATTERY_BQ27XXX_I2C
173 tristate "BQ27xxx I2C support"
174 depends on BATTERY_BQ27XXX
175 depends on I2C
176 default y
177 help
178 Say Y here to enable support for batteries with BQ27xxx chips
179 connected over an I2C bus.
180
181config BATTERY_DA9030
182 tristate "DA9030 battery driver"
183 depends on PMIC_DA903X
184 help
185 Say Y here to enable support for batteries charger integrated into
186 DA9030 PMIC.
187
188config BATTERY_DA9052
189 tristate "Dialog DA9052 Battery"
190 depends on PMIC_DA9052
191 help
192 Say Y here to enable support for batteries charger integrated into
193 DA9052 PMIC.
194
195config CHARGER_DA9150
196 tristate "Dialog Semiconductor DA9150 Charger support"
197 depends on MFD_DA9150
198 depends on DA9150_GPADC
199 depends on IIO
200 help
201 Say Y here to enable support for charger unit of the DA9150
202 Integrated Charger & Fuel-Gauge IC.
203
204 This driver can also be built as a module. If so, the module will be
205 called da9150-charger.
206
207config BATTERY_DA9150
208 tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
209 depends on MFD_DA9150
210 help
211 Say Y here to enable support for the Fuel-Gauge unit of the DA9150
212 Integrated Charger & Fuel-Gauge IC
213
214 This driver can also be built as a module. If so, the module will be
215 called da9150-fg.
216
217config AXP288_CHARGER
218 tristate "X-Powers AXP288 Charger"
219 depends on MFD_AXP20X && EXTCON_AXP288
220 help
221 Say yes here to have support X-Power AXP288 power management IC (PMIC)
222 integrated charger.
223
224config AXP288_FUEL_GAUGE
225 tristate "X-Powers AXP288 Fuel Gauge"
226 depends on MFD_AXP20X && IIO
227 help
228 Say yes here to have support for X-Power power management IC (PMIC)
229 Fuel Gauge. The device provides battery statistics and status
230 monitoring as well as alerts for battery over/under voltage and
231 over/under temperature.
232
233config BATTERY_MAX17040
234 tristate "Maxim MAX17040 Fuel Gauge"
235 depends on I2C
236 help
237 MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
238 in handheld and portable equipment. The MAX17040 is configured
239 to operate with a single lithium cell
240
241config BATTERY_MAX17042
242 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
243 depends on I2C
244 select REGMAP_I2C
245 help
246 MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
247 in handheld and portable equipment. The MAX17042 is configured
248 to operate with a single lithium cell. MAX8997 and MAX8966 are
249 multi-function devices that include fuel gauages that are compatible
250 with MAX17042. This driver also supports max17047/50 chips which are
251 improved version of max17042.
252
253config BATTERY_Z2
254 tristate "Z2 battery driver"
255 depends on I2C && MACH_ZIPIT2
256 help
257 Say Y to include support for the battery on the Zipit Z2.
258
259config BATTERY_S3C_ADC
260 tristate "Battery driver for Samsung ADC based monitoring"
261 depends on S3C_ADC
262 help
263 Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
264
265config BATTERY_TWL4030_MADC
266 tristate "TWL4030 MADC battery driver"
267 depends on TWL4030_MADC
268 help
269 Say Y here to enable this dumb driver for batteries managed
270 through the TWL4030 MADC.
271
272config CHARGER_88PM860X
273 tristate "Marvell 88PM860x Charger driver"
274 depends on MFD_88PM860X && BATTERY_88PM860X
275 help
276 Say Y here to enable charger for Marvell 88PM860x chip.
277
278config CHARGER_PCF50633
279 tristate "NXP PCF50633 MBC"
280 depends on MFD_PCF50633
281 help
282 Say Y to include support for NXP PCF50633 Main Battery Charger.
283
284config BATTERY_JZ4740
285 tristate "Ingenic JZ4740 battery"
286 depends on MACH_JZ4740
287 depends on MFD_JZ4740_ADC
288 help
289 Say Y to enable support for the battery on Ingenic JZ4740 based
290 boards.
291
292 This driver can be build as a module. If so, the module will be
293 called jz4740-battery.
294
295config BATTERY_INTEL_MID
296 tristate "Battery driver for Intel MID platforms"
297 depends on INTEL_SCU_IPC && SPI
298 help
299 Say Y here to enable the battery driver on Intel MID
300 platforms.
301
302config BATTERY_RX51
303 tristate "Nokia RX-51 (N900) battery driver"
304 depends on TWL4030_MADC
305 help
306 Say Y here to enable support for battery information on Nokia
307 RX-51, also known as N900 tablet.
308
309config CHARGER_ISP1704
310 tristate "ISP1704 USB Charger Detection"
311 depends on USB_PHY
312 depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
313 help
314 Say Y to enable support for USB Charger Detection with
315 ISP1707/ISP1704 USB transceivers.
316
317config CHARGER_MAX8903
318 tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
319 help
320 Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
321 The driver supports controlling charger-enable and current-limit
322 pins based on the status of charger connections with interrupt
323 handlers.
324
325config CHARGER_TWL4030
326 tristate "OMAP TWL4030 BCI charger driver"
327 depends on IIO && TWL4030_CORE
328 help
329 Say Y here to enable support for TWL4030 Battery Charge Interface.
330
331config CHARGER_LP8727
332 tristate "TI/National Semiconductor LP8727 charger driver"
333 depends on I2C
334 help
335 Say Y here to enable support for LP8727 Charger Driver.
336
337config CHARGER_LP8788
338 tristate "TI LP8788 charger driver"
339 depends on MFD_LP8788
340 depends on LP8788_ADC
341 depends on IIO
342 help
343 Say Y to enable support for the LP8788 linear charger.
344
345config CHARGER_GPIO
346 tristate "GPIO charger"
347 depends on GPIOLIB || COMPILE_TEST
348 help
349 Say Y to include support for chargers which report their online status
350 through a GPIO pin.
351
352 This driver can be build as a module. If so, the module will be
353 called gpio-charger.
354
355config CHARGER_MANAGER
356 bool "Battery charger manager for multiple chargers"
357 depends on REGULATOR
358 select EXTCON
359 help
360 Say Y to enable charger-manager support, which allows multiple
361 chargers attached to a battery and multiple batteries attached to a
362 system. The charger-manager also can monitor charging status in
363 runtime and in suspend-to-RAM by waking up the system periodically
364 with help of suspend_again support.
365
366config CHARGER_MAX14577
367 tristate "Maxim MAX14577/77836 battery charger driver"
368 depends on MFD_MAX14577
369 help
370 Say Y to enable support for the battery charger control sysfs and
371 platform data of MAX14577/77836 MUICs.
372
373config CHARGER_MAX77693
374 tristate "Maxim MAX77693 battery charger driver"
375 depends on MFD_MAX77693
376 help
377 Say Y to enable support for the Maxim MAX77693 battery charger.
378
379config CHARGER_MAX8997
380 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
381 depends on MFD_MAX8997 && REGULATOR_MAX8997
382 help
383 Say Y to enable support for the battery charger control sysfs and
384 platform data of MAX8997/LP3974 PMICs.
385
386config CHARGER_MAX8998
387 tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
388 depends on MFD_MAX8998 && REGULATOR_MAX8998
389 help
390 Say Y to enable support for the battery charger control sysfs and
391 platform data of MAX8998/LP3974 PMICs.
392
393config CHARGER_QCOM_SMBB
394 tristate "Qualcomm Switch-Mode Battery Charger and Boost"
395 depends on MFD_SPMI_PMIC || COMPILE_TEST
396 depends on OF
397 depends on EXTCON
398 help
399 Say Y to include support for the Switch-Mode Battery Charger and
400 Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
401 is an integrated, single-cell lithium-ion battery charger. DT
402 configuration is required for loading, see the devicetree
403 documentation for more detail. The base name for this driver is
404 'pm8941_charger'.
405
406config CHARGER_BQ2415X
407 tristate "TI BQ2415x battery charger driver"
408 depends on I2C
409 help
410 Say Y to enable support for the TI BQ2415x battery charger
411 PMICs.
412
413 You'll need this driver to charge batteries on e.g. Nokia
414 RX-51/N900.
415
416config CHARGER_BQ24190
417 tristate "TI BQ24190 battery charger driver"
418 depends on I2C
419 depends on GPIOLIB || COMPILE_TEST
420 help
421 Say Y to enable support for the TI BQ24190 battery charger.
422
423config CHARGER_BQ24257
424 tristate "TI BQ24250/24251/24257 battery charger driver"
425 depends on I2C
426 depends on GPIOLIB || COMPILE_TEST
427 depends on REGMAP_I2C
428 help
429 Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
430 chargers.
431
432config CHARGER_BQ24735
433 tristate "TI BQ24735 battery charger support"
434 depends on I2C
435 depends on GPIOLIB || COMPILE_TEST
436 help
437 Say Y to enable support for the TI BQ24735 battery charger.
438
439config CHARGER_BQ25890
440 tristate "TI BQ25890 battery charger driver"
441 depends on I2C
442 depends on GPIOLIB || COMPILE_TEST
443 select REGMAP_I2C
444 help
445 Say Y to enable support for the TI BQ25890 battery charger.
446
447config CHARGER_SMB347
448 tristate "Summit Microelectronics SMB347 Battery Charger"
449 depends on I2C
450 select REGMAP_I2C
451 help
452 Say Y to include support for Summit Microelectronics SMB347
453 Battery Charger.
454
455config CHARGER_TPS65090
456 tristate "TPS65090 battery charger driver"
457 depends on MFD_TPS65090
458 help
459 Say Y here to enable support for battery charging with TPS65090
460 PMIC chips.
461
462config CHARGER_TPS65217
463 tristate "TPS65217 battery charger driver"
464 depends on MFD_TPS65217
465 help
466 Say Y here to enable support for battery charging with TPS65217
467 PMIC chips.
468
469config BATTERY_GAUGE_LTC2941
470 tristate "LTC2941/LTC2943 Battery Gauge Driver"
471 depends on I2C
472 help
473 Say Y here to include support for LTC2941 and LTC2943 Battery
474 Gauge IC. The driver reports the charge count continuously, and
475 measures the voltage and temperature every 10 seconds.
476
477config AB8500_BM
478 bool "AB8500 Battery Management Driver"
479 depends on AB8500_CORE && AB8500_GPADC
480 help
481 Say Y to include support for AB8500 battery management.
482
483config BATTERY_GOLDFISH
484 tristate "Goldfish battery driver"
485 depends on GOLDFISH || COMPILE_TEST
486 depends on HAS_IOMEM
487 help
488 Say Y to enable support for the battery and AC power in the
489 Goldfish emulator.
490
491config BATTERY_RT5033
492 tristate "RT5033 fuel gauge support"
493 depends on MFD_RT5033
494 help
495 This adds support for battery fuel gauge in Richtek RT5033 PMIC.
496 The fuelgauge calculates and determines the battery state of charge
497 according to battery open circuit voltage.
498
499config CHARGER_RT9455
500 tristate "Richtek RT9455 battery charger driver"
501 depends on I2C
502 depends on GPIOLIB || COMPILE_TEST
503 select REGMAP_I2C
504 help
505 Say Y to enable support for Richtek RT9455 battery charger.
506
507config AXP20X_POWER
508 tristate "AXP20x power supply driver"
509 depends on MFD_AXP20X
510 help
511 This driver provides support for the power supply features of
512 AXP20x PMIC.
513
514endif # POWER_SUPPLY
diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile
new file mode 100644
index 000000000000..36c599d9a495
--- /dev/null
+++ b/drivers/power/supply/Makefile
@@ -0,0 +1,74 @@
1subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
2
3power_supply-y := power_supply_core.o
4power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
5power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
6
7obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
8obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
9
10obj-$(CONFIG_PDA_POWER) += pda_power.o
11obj-$(CONFIG_APM_POWER) += apm_power.o
12obj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o
13obj-$(CONFIG_MAX8925_POWER) += max8925_power.o
14obj-$(CONFIG_WM831X_BACKUP) += wm831x_backup.o
15obj-$(CONFIG_WM831X_POWER) += wm831x_power.o
16obj-$(CONFIG_WM8350_POWER) += wm8350_power.o
17obj-$(CONFIG_TEST_POWER) += test_power.o
18
19obj-$(CONFIG_BATTERY_88PM860X) += 88pm860x_battery.o
20obj-$(CONFIG_BATTERY_ACT8945A) += act8945a_charger.o
21obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o
22obj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o
23obj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o
24obj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o
25obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o
26obj-$(CONFIG_BATTERY_GOLDFISH) += goldfish_battery.o
27obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
28obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o
29obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o
30obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o
31obj-$(CONFIG_BATTERY_IPAQ_MICRO) += ipaq_micro_battery.o
32obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
33obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
34obj-$(CONFIG_BATTERY_BQ27XXX) += bq27xxx_battery.o
35obj-$(CONFIG_BATTERY_BQ27XXX_I2C) += bq27xxx_battery_i2c.o
36obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
37obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
38obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o
39obj-$(CONFIG_BATTERY_DA9150) += da9150-fg.o
40obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
41obj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o
42obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
43obj-$(CONFIG_BATTERY_RT5033) += rt5033_battery.o
44obj-$(CONFIG_CHARGER_RT9455) += rt9455_charger.o
45obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o
46obj-$(CONFIG_BATTERY_TWL4030_MADC) += twl4030_madc_battery.o
47obj-$(CONFIG_CHARGER_88PM860X) += 88pm860x_charger.o
48obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
49obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
50obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
51obj-$(CONFIG_BATTERY_RX51) += rx51_battery.o
52obj-$(CONFIG_AB8500_BM) += ab8500_bmdata.o ab8500_charger.o ab8500_fg.o ab8500_btemp.o abx500_chargalg.o pm2301_charger.o
53obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
54obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
55obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
56obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
57obj-$(CONFIG_CHARGER_LP8788) += lp8788-charger.o
58obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
59obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
60obj-$(CONFIG_CHARGER_MAX14577) += max14577_charger.o
61obj-$(CONFIG_CHARGER_MAX77693) += max77693_charger.o
62obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
63obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
64obj-$(CONFIG_CHARGER_QCOM_SMBB) += qcom_smbb.o
65obj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o
66obj-$(CONFIG_CHARGER_BQ24190) += bq24190_charger.o
67obj-$(CONFIG_CHARGER_BQ24257) += bq24257_charger.o
68obj-$(CONFIG_CHARGER_BQ24735) += bq24735-charger.o
69obj-$(CONFIG_CHARGER_BQ25890) += bq25890_charger.o
70obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
71obj-$(CONFIG_CHARGER_TPS65090) += tps65090-charger.o
72obj-$(CONFIG_CHARGER_TPS65217) += tps65217_charger.o
73obj-$(CONFIG_AXP288_FUEL_GAUGE) += axp288_fuel_gauge.o
74obj-$(CONFIG_AXP288_CHARGER) += axp288_charger.o
diff --git a/drivers/power/ab8500_bmdata.c b/drivers/power/supply/ab8500_bmdata.c
index d29864533093..d29864533093 100644
--- a/drivers/power/ab8500_bmdata.c
+++ b/drivers/power/supply/ab8500_bmdata.c
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c
index bf2e5dd301e7..bf2e5dd301e7 100644
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/supply/ab8500_btemp.c
diff --git a/drivers/power/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index 30de5d42b26a..30de5d42b26a 100644
--- a/drivers/power/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c
index 5a36cf88578a..5a36cf88578a 100644
--- a/drivers/power/ab8500_fg.c
+++ b/drivers/power/supply/ab8500_fg.c
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/supply/abx500_chargalg.c
index d9104b1ab7cf..d9104b1ab7cf 100644
--- a/drivers/power/abx500_chargalg.c
+++ b/drivers/power/supply/abx500_chargalg.c
diff --git a/drivers/power/act8945a_charger.c b/drivers/power/supply/act8945a_charger.c
index b5c00e45741e..b5c00e45741e 100644
--- a/drivers/power/act8945a_charger.c
+++ b/drivers/power/supply/act8945a_charger.c
diff --git a/drivers/power/apm_power.c b/drivers/power/supply/apm_power.c
index 9d1a7fbcaed4..9d1a7fbcaed4 100644
--- a/drivers/power/apm_power.c
+++ b/drivers/power/supply/apm_power.c
diff --git a/drivers/power/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c
index 6af6feb7058d..6af6feb7058d 100644
--- a/drivers/power/axp20x_usb_power.c
+++ b/drivers/power/supply/axp20x_usb_power.c
diff --git a/drivers/power/axp288_charger.c b/drivers/power/supply/axp288_charger.c
index 4030eeb7cf65..4030eeb7cf65 100644
--- a/drivers/power/axp288_charger.c
+++ b/drivers/power/supply/axp288_charger.c
diff --git a/drivers/power/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
index 50c0110d6b58..50c0110d6b58 100644
--- a/drivers/power/axp288_fuel_gauge.c
+++ b/drivers/power/supply/axp288_fuel_gauge.c
diff --git a/drivers/power/bq2415x_charger.c b/drivers/power/supply/bq2415x_charger.c
index 73e2f0b79dd4..73e2f0b79dd4 100644
--- a/drivers/power/bq2415x_charger.c
+++ b/drivers/power/supply/bq2415x_charger.c
diff --git a/drivers/power/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
index f5746b9f4e83..f5746b9f4e83 100644
--- a/drivers/power/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
diff --git a/drivers/power/bq24257_charger.c b/drivers/power/supply/bq24257_charger.c
index 1fea2c7ef97f..1fea2c7ef97f 100644
--- a/drivers/power/bq24257_charger.c
+++ b/drivers/power/supply/bq24257_charger.c
diff --git a/drivers/power/bq24735-charger.c b/drivers/power/supply/bq24735-charger.c
index fa454c19ce17..fa454c19ce17 100644
--- a/drivers/power/bq24735-charger.c
+++ b/drivers/power/supply/bq24735-charger.c
diff --git a/drivers/power/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
index f993a55cde20..f993a55cde20 100644
--- a/drivers/power/bq25890_charger.c
+++ b/drivers/power/supply/bq25890_charger.c
diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c
index 323d05a12f9b..323d05a12f9b 100644
--- a/drivers/power/bq27xxx_battery.c
+++ b/drivers/power/supply/bq27xxx_battery.c
diff --git a/drivers/power/bq27xxx_battery_i2c.c b/drivers/power/supply/bq27xxx_battery_i2c.c
index 85d4ea2a9c20..85d4ea2a9c20 100644
--- a/drivers/power/bq27xxx_battery_i2c.c
+++ b/drivers/power/supply/bq27xxx_battery_i2c.c
diff --git a/drivers/power/charger-manager.c b/drivers/power/supply/charger-manager.c
index e664ca7c0afd..e664ca7c0afd 100644
--- a/drivers/power/charger-manager.c
+++ b/drivers/power/supply/charger-manager.c
diff --git a/drivers/power/collie_battery.c b/drivers/power/supply/collie_battery.c
index 3a0bc608d4b5..3a0bc608d4b5 100644
--- a/drivers/power/collie_battery.c
+++ b/drivers/power/supply/collie_battery.c
diff --git a/drivers/power/da9030_battery.c b/drivers/power/supply/da9030_battery.c
index 5ca0f4d90792..5ca0f4d90792 100644
--- a/drivers/power/da9030_battery.c
+++ b/drivers/power/supply/da9030_battery.c
diff --git a/drivers/power/da9052-battery.c b/drivers/power/supply/da9052-battery.c
index 830ec46fe7d0..830ec46fe7d0 100644
--- a/drivers/power/da9052-battery.c
+++ b/drivers/power/supply/da9052-battery.c
diff --git a/drivers/power/da9150-charger.c b/drivers/power/supply/da9150-charger.c
index 60099815296e..60099815296e 100644
--- a/drivers/power/da9150-charger.c
+++ b/drivers/power/supply/da9150-charger.c
diff --git a/drivers/power/da9150-fg.c b/drivers/power/supply/da9150-fg.c
index 8b8ce978656a..8b8ce978656a 100644
--- a/drivers/power/da9150-fg.c
+++ b/drivers/power/supply/da9150-fg.c
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/supply/ds2760_battery.c
index 80f73ccb77ab..369ab00bf453 100644
--- a/drivers/power/ds2760_battery.c
+++ b/drivers/power/supply/ds2760_battery.c
@@ -28,8 +28,8 @@
28#include <linux/platform_device.h> 28#include <linux/platform_device.h>
29#include <linux/power_supply.h> 29#include <linux/power_supply.h>
30 30
31#include "../w1/w1.h" 31#include "../../w1/w1.h"
32#include "../w1/slaves/w1_ds2760.h" 32#include "../../w1/slaves/w1_ds2760.h"
33 33
34struct ds2760_device_info { 34struct ds2760_device_info {
35 struct device *dev; 35 struct device *dev;
diff --git a/drivers/power/ds2780_battery.c b/drivers/power/supply/ds2780_battery.c
index d3743d0ad55b..1b3b6fa89c28 100644
--- a/drivers/power/ds2780_battery.c
+++ b/drivers/power/supply/ds2780_battery.c
@@ -21,8 +21,8 @@
21#include <linux/power_supply.h> 21#include <linux/power_supply.h>
22#include <linux/idr.h> 22#include <linux/idr.h>
23 23
24#include "../w1/w1.h" 24#include "../../w1/w1.h"
25#include "../w1/slaves/w1_ds2780.h" 25#include "../../w1/slaves/w1_ds2780.h"
26 26
27/* Current unit measurement in uA for a 1 milli-ohm sense resistor */ 27/* Current unit measurement in uA for a 1 milli-ohm sense resistor */
28#define DS2780_CURRENT_UNITS 1563 28#define DS2780_CURRENT_UNITS 1563
diff --git a/drivers/power/ds2781_battery.c b/drivers/power/supply/ds2781_battery.c
index c3680024f399..cc0149131f89 100644
--- a/drivers/power/ds2781_battery.c
+++ b/drivers/power/supply/ds2781_battery.c
@@ -19,8 +19,8 @@
19#include <linux/power_supply.h> 19#include <linux/power_supply.h>
20#include <linux/idr.h> 20#include <linux/idr.h>
21 21
22#include "../w1/w1.h" 22#include "../../w1/w1.h"
23#include "../w1/slaves/w1_ds2781.h" 23#include "../../w1/slaves/w1_ds2781.h"
24 24
25/* Current unit measurement in uA for a 1 milli-ohm sense resistor */ 25/* Current unit measurement in uA for a 1 milli-ohm sense resistor */
26#define DS2781_CURRENT_UNITS 1563 26#define DS2781_CURRENT_UNITS 1563
diff --git a/drivers/power/ds2782_battery.c b/drivers/power/supply/ds2782_battery.c
index a1b7e0592245..a1b7e0592245 100644
--- a/drivers/power/ds2782_battery.c
+++ b/drivers/power/supply/ds2782_battery.c
diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c
index edb36bf781b0..edb36bf781b0 100644
--- a/drivers/power/generic-adc-battery.c
+++ b/drivers/power/supply/generic-adc-battery.c
diff --git a/drivers/power/goldfish_battery.c b/drivers/power/supply/goldfish_battery.c
index f5c525e4482a..f5c525e4482a 100644
--- a/drivers/power/goldfish_battery.c
+++ b/drivers/power/supply/goldfish_battery.c
diff --git a/drivers/power/gpio-charger.c b/drivers/power/supply/gpio-charger.c
index c5869b1941ac..c5869b1941ac 100644
--- a/drivers/power/gpio-charger.c
+++ b/drivers/power/supply/gpio-charger.c
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/supply/intel_mid_battery.c
index 9fa4acc107ca..9fa4acc107ca 100644
--- a/drivers/power/intel_mid_battery.c
+++ b/drivers/power/supply/intel_mid_battery.c
diff --git a/drivers/power/ipaq_micro_battery.c b/drivers/power/supply/ipaq_micro_battery.c
index 35b01c7d775b..35b01c7d775b 100644
--- a/drivers/power/ipaq_micro_battery.c
+++ b/drivers/power/supply/ipaq_micro_battery.c
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/supply/isp1704_charger.c
index 4cd6899b961e..4cd6899b961e 100644
--- a/drivers/power/isp1704_charger.c
+++ b/drivers/power/supply/isp1704_charger.c
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/supply/jz4740-battery.c
index 88f04f4d1a70..88f04f4d1a70 100644
--- a/drivers/power/jz4740-battery.c
+++ b/drivers/power/supply/jz4740-battery.c
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/supply/lp8727_charger.c
index 042fb3dacb46..042fb3dacb46 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/supply/lp8727_charger.c
diff --git a/drivers/power/lp8788-charger.c b/drivers/power/supply/lp8788-charger.c
index 7321b727d484..7321b727d484 100644
--- a/drivers/power/lp8788-charger.c
+++ b/drivers/power/supply/lp8788-charger.c
diff --git a/drivers/power/ltc2941-battery-gauge.c b/drivers/power/supply/ltc2941-battery-gauge.c
index 4adf2ba021ce..4adf2ba021ce 100644
--- a/drivers/power/ltc2941-battery-gauge.c
+++ b/drivers/power/supply/ltc2941-battery-gauge.c
diff --git a/drivers/power/max14577_charger.c b/drivers/power/supply/max14577_charger.c
index a36bcaf62dd4..a36bcaf62dd4 100644
--- a/drivers/power/max14577_charger.c
+++ b/drivers/power/supply/max14577_charger.c
diff --git a/drivers/power/max17040_battery.c b/drivers/power/supply/max17040_battery.c
index 8689c80202b5..8689c80202b5 100644
--- a/drivers/power/max17040_battery.c
+++ b/drivers/power/supply/max17040_battery.c
diff --git a/drivers/power/max17042_battery.c b/drivers/power/supply/max17042_battery.c
index 9c65f134d447..9c65f134d447 100644
--- a/drivers/power/max17042_battery.c
+++ b/drivers/power/supply/max17042_battery.c
diff --git a/drivers/power/max77693_charger.c b/drivers/power/supply/max77693_charger.c
index 060cab5ae3aa..060cab5ae3aa 100644
--- a/drivers/power/max77693_charger.c
+++ b/drivers/power/supply/max77693_charger.c
diff --git a/drivers/power/max8903_charger.c b/drivers/power/supply/max8903_charger.c
index fdc73d686153..fdc73d686153 100644
--- a/drivers/power/max8903_charger.c
+++ b/drivers/power/supply/max8903_charger.c
diff --git a/drivers/power/max8925_power.c b/drivers/power/supply/max8925_power.c
index 3b94620ce5c1..3b94620ce5c1 100644
--- a/drivers/power/max8925_power.c
+++ b/drivers/power/supply/max8925_power.c
diff --git a/drivers/power/max8997_charger.c b/drivers/power/supply/max8997_charger.c
index 0b2eab571528..0b2eab571528 100644
--- a/drivers/power/max8997_charger.c
+++ b/drivers/power/supply/max8997_charger.c
diff --git a/drivers/power/max8998_charger.c b/drivers/power/supply/max8998_charger.c
index b64cf0f14142..b64cf0f14142 100644
--- a/drivers/power/max8998_charger.c
+++ b/drivers/power/supply/max8998_charger.c
diff --git a/drivers/power/olpc_battery.c b/drivers/power/supply/olpc_battery.c
index 9e29b1321648..9e29b1321648 100644
--- a/drivers/power/olpc_battery.c
+++ b/drivers/power/supply/olpc_battery.c
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/supply/pcf50633-charger.c
index d05597b4e40f..d05597b4e40f 100644
--- a/drivers/power/pcf50633-charger.c
+++ b/drivers/power/supply/pcf50633-charger.c
diff --git a/drivers/power/pda_power.c b/drivers/power/supply/pda_power.c
index dfe1ee89f7c7..dfe1ee89f7c7 100644
--- a/drivers/power/pda_power.c
+++ b/drivers/power/supply/pda_power.c
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/supply/pm2301_charger.c
index fb62ed3fc38c..fb62ed3fc38c 100644
--- a/drivers/power/pm2301_charger.c
+++ b/drivers/power/supply/pm2301_charger.c
diff --git a/drivers/power/pm2301_charger.h b/drivers/power/supply/pm2301_charger.h
index 24181cf9717b..24181cf9717b 100644
--- a/drivers/power/pm2301_charger.h
+++ b/drivers/power/supply/pm2301_charger.h
diff --git a/drivers/power/pmu_battery.c b/drivers/power/supply/pmu_battery.c
index 9c8d5253812c..9c8d5253812c 100644
--- a/drivers/power/pmu_battery.c
+++ b/drivers/power/supply/pmu_battery.c
diff --git a/drivers/power/power_supply.h b/drivers/power/supply/power_supply.h
index cc439fd89d8d..cc439fd89d8d 100644
--- a/drivers/power/power_supply.h
+++ b/drivers/power/supply/power_supply.h
diff --git a/drivers/power/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index a74d8ca383a1..a74d8ca383a1 100644
--- a/drivers/power/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
diff --git a/drivers/power/power_supply_leds.c b/drivers/power/supply/power_supply_leds.c
index 2277ad9c2f68..2277ad9c2f68 100644
--- a/drivers/power/power_supply_leds.c
+++ b/drivers/power/supply/power_supply_leds.c
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c
index bcde8d13476a..bcde8d13476a 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/supply/power_supply_sysfs.c
diff --git a/drivers/power/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c
index b5896ba2a602..b5896ba2a602 100644
--- a/drivers/power/qcom_smbb.c
+++ b/drivers/power/supply/qcom_smbb.c
diff --git a/drivers/power/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c
index bcdd83048492..bcdd83048492 100644
--- a/drivers/power/rt5033_battery.c
+++ b/drivers/power/supply/rt5033_battery.c
diff --git a/drivers/power/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c
index cfdbde9daf94..cfdbde9daf94 100644
--- a/drivers/power/rt9455_charger.c
+++ b/drivers/power/supply/rt9455_charger.c
diff --git a/drivers/power/rx51_battery.c b/drivers/power/supply/rx51_battery.c
index af9383d23d12..af9383d23d12 100644
--- a/drivers/power/rx51_battery.c
+++ b/drivers/power/supply/rx51_battery.c
diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/supply/s3c_adc_battery.c
index 0ffe5cd3abf6..0ffe5cd3abf6 100644
--- a/drivers/power/s3c_adc_battery.c
+++ b/drivers/power/supply/s3c_adc_battery.c
diff --git a/drivers/power/sbs-battery.c b/drivers/power/supply/sbs-battery.c
index 768b9fcb58ea..768b9fcb58ea 100644
--- a/drivers/power/sbs-battery.c
+++ b/drivers/power/supply/sbs-battery.c
diff --git a/drivers/power/smb347-charger.c b/drivers/power/supply/smb347-charger.c
index 072c5189bd6d..072c5189bd6d 100644
--- a/drivers/power/smb347-charger.c
+++ b/drivers/power/supply/smb347-charger.c
diff --git a/drivers/power/test_power.c b/drivers/power/supply/test_power.c
index 57246cdbd042..57246cdbd042 100644
--- a/drivers/power/test_power.c
+++ b/drivers/power/supply/test_power.c
diff --git a/drivers/power/tosa_battery.c b/drivers/power/supply/tosa_battery.c
index 6e88c1b37945..6e88c1b37945 100644
--- a/drivers/power/tosa_battery.c
+++ b/drivers/power/supply/tosa_battery.c
diff --git a/drivers/power/tps65090-charger.c b/drivers/power/supply/tps65090-charger.c
index 1b4b5e09538e..1b4b5e09538e 100644
--- a/drivers/power/tps65090-charger.c
+++ b/drivers/power/supply/tps65090-charger.c
diff --git a/drivers/power/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c
index 73dfae41def8..73dfae41def8 100644
--- a/drivers/power/tps65217_charger.c
+++ b/drivers/power/supply/tps65217_charger.c
diff --git a/drivers/power/twl4030_charger.c b/drivers/power/supply/twl4030_charger.c
index bcd4dc304f27..bcd4dc304f27 100644
--- a/drivers/power/twl4030_charger.c
+++ b/drivers/power/supply/twl4030_charger.c
diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/supply/twl4030_madc_battery.c
index f5817e422d64..f5817e422d64 100644
--- a/drivers/power/twl4030_madc_battery.c
+++ b/drivers/power/supply/twl4030_madc_battery.c
diff --git a/drivers/power/wm831x_backup.c b/drivers/power/supply/wm831x_backup.c
index 2e33109ca8c7..2e33109ca8c7 100644
--- a/drivers/power/wm831x_backup.c
+++ b/drivers/power/supply/wm831x_backup.c
diff --git a/drivers/power/wm831x_power.c b/drivers/power/supply/wm831x_power.c
index 7082301da945..7082301da945 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/supply/wm831x_power.c
diff --git a/drivers/power/wm8350_power.c b/drivers/power/supply/wm8350_power.c
index 5c5880664e09..5c5880664e09 100644
--- a/drivers/power/wm8350_power.c
+++ b/drivers/power/supply/wm8350_power.c
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/supply/wm97xx_battery.c
index c2f09ed35050..6285626d142a 100644
--- a/drivers/power/wm97xx_battery.c
+++ b/drivers/power/supply/wm97xx_battery.c
@@ -1,6 +1,4 @@
1/* 1/*
2 * linux/drivers/power/wm97xx_battery.c
3 *
4 * Battery measurement code for WM97xx 2 * Battery measurement code for WM97xx
5 * 3 *
6 * based on tosa_battery.c 4 * based on tosa_battery.c
diff --git a/drivers/power/z2_battery.c b/drivers/power/supply/z2_battery.c
index b201e3facf73..b201e3facf73 100644
--- a/drivers/power/z2_battery.c
+++ b/drivers/power/supply/z2_battery.c