mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
e60fea794e
Driver to allow use of the ADC drivers supported by the IIO subsystem for battery status monitoring. Connecting this driver to the relevant IIO device requires registration of the appropriate iio_map structure array by the IIO device driver (usually from platform data). If specified the driver will also make use of a gpio to provide interrupt driven notification that the battery is fully charged. In last version: Addressed concerns raised by lars: a. made the adc_bat per device. b. get the IIO channel using hardcoded channel names. c. Minor issues related to gpio_is_valid and some code refactoring. In V1: Addressed concerns raised by Anton: a. changed the struct name to gab(generic adc battery). b. Added some functions to neaten the code. c. Some minor coding guidelines changes. d. Used the latest function introduce by lars: iio_read_channel_processed to streamline the code. In V2: Addressed concerns by lars: a. No need of allocating memory for channels.Make it array. b. Code restructring, coding style and following kernel guidelines changes suggested by him. In V3: Addressed conerns by Anton: a. Added the copyright. b. Coding guidelines changes suggested by him. c. Added Makefile and Kconfig Signed-off-by: anish kumar <anish198519851985@gmail.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
49 lines
2.1 KiB
Makefile
49 lines
2.1 KiB
Makefile
ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
|
|
|
|
power_supply-y := power_supply_core.o
|
|
power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
|
|
power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
|
|
|
|
obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
|
|
obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
|
|
|
|
obj-$(CONFIG_PDA_POWER) += pda_power.o
|
|
obj-$(CONFIG_APM_POWER) += apm_power.o
|
|
obj-$(CONFIG_MAX8925_POWER) += max8925_power.o
|
|
obj-$(CONFIG_WM831X_BACKUP) += wm831x_backup.o
|
|
obj-$(CONFIG_WM831X_POWER) += wm831x_power.o
|
|
obj-$(CONFIG_WM8350_POWER) += wm8350_power.o
|
|
obj-$(CONFIG_TEST_POWER) += test_power.o
|
|
|
|
obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o
|
|
obj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o
|
|
obj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o
|
|
obj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o
|
|
obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
|
|
obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o
|
|
obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o
|
|
obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o
|
|
obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
|
|
obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
|
|
obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o
|
|
obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
|
|
obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
|
|
obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
|
|
obj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o
|
|
obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
|
|
obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o
|
|
obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
|
|
obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
|
|
obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
|
|
obj-$(CONFIG_AB8500_BM) += ab8500_charger.o ab8500_btemp.o ab8500_fg.o abx500_chargalg.o
|
|
obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
|
|
obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
|
|
obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
|
|
obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
|
|
obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
|
|
obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
|
|
obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
|
|
obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
|
|
obj-$(CONFIG_POWER_AVS) += avs/
|
|
obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
|