Add LTC2941/LTC2943 Battery Gauge Driver
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 28 Oct 2014 07:05:12 +0000 (08:05 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 22 Jan 2015 02:23:07 +0000 (03:23 +0100)
commit085bc24d1553aae0d8a2b8e5b7c80c7862d0212c
tree7617801890a883e62e396c18d8b8b61aa7ca8a45
parent79969f6aafcb4c5d02fc9b33afc58446e4e9dbac
Add LTC2941/LTC2943 Battery Gauge Driver

Both the LTC2941 and LTC2943 measure battery capacity.
The LTC2943 is compatible with the LTC2941, it adds voltage and
temperature monitoring, and uses a slightly different conversion
formula for the charge counter.

To avoid confusion with e.g. the LTC2945, the driver is called
LTC2941 instead of LTC294X.

v2: Fix units of measurement: uV, uA and centidegrees.
v3: Correctly set configuration register. Allow negative values
    for the sense resistor.
v4: Run checkpatch.pl and fix all errors and warnings.
v5: Prefix "lltc," to devicetree properties.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
[ removed .owner field ]
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/ltc2941-battery-gauge.c [new file with mode: 0644]