Skip to content

Commit

Permalink
w1: add Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC support
Browse files Browse the repository at this point in the history
Add support for the Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC.

It was suggested to combine this functionality with the current ds2782
driver.  Unfortunately, I'm unable to commit the time to refactoring this
driver to that extent and I don't have a platform with the ds2782 part to
validate that there are no regression issues by adding this functionality.

[[email protected]: use min_t()]
Signed-off-by: Clifton Barnes <[email protected]>
Tested-by: Haojian Zhuang <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: Ryan Mallon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Clifton Barnes authored and torvalds committed May 27, 2011
1 parent 963bb10 commit 275ac74
Show file tree
Hide file tree
Showing 8 changed files with 1,222 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ config BATTERY_DS2760
help
Say Y here to enable support for batteries with ds2760 chip.

config BATTERY_DS2780
tristate "DS2780 battery driver"
select W1
select W1_SLAVE_DS2780
help
Say Y here to enable support for batteries with ds2780 chip.

config BATTERY_DS2782
tristate "DS2782/DS2786 standalone gas-gauge"
depends on I2C
Expand Down
1 change: 1 addition & 0 deletions drivers/power/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ 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_DS2782) += ds2782_battery.o
obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o
Expand Down
Loading

0 comments on commit 275ac74

Please sign in to comment.