aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-09-22 15:35:09 -0400
committerSebastian Reichel <sre@kernel.org>2015-09-23 11:15:27 -0400
commitd74534c27775857cb09abd0f92ed9539dc8d0a93 (patch)
tree825f5aa8b8dcd04b304485b83154625484feb0a2 /include/linux
parentc570903290d7cb542c06b8985b7326a8dd4cdf86 (diff)
power: bq27xxx_battery: Add support for additional bq27xxx family devices
Add support for additional devices and register equivalent family devices including the bq27010, bq27210, bq27500, bq27510, bq27520, bq27530, bq27531, bq27541, bq27542, bq27546, bq27545, bq27441, bq27421, and the bq27641. To facilitate this process the register mapings have been moved to tables and other small cleanups have been made. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/power/bq27xxx_battery.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/power/bq27xxx_battery.h b/include/linux/power/bq27xxx_battery.h
index a4efb10a1bab..45f6a7b5b3cb 100644
--- a/include/linux/power/bq27xxx_battery.h
+++ b/include/linux/power/bq27xxx_battery.h
@@ -12,7 +12,15 @@
12 * register to be read. The return value should either be the content of 12 * register to be read. The return value should either be the content of
13 * the passed register or an error value. 13 * the passed register or an error value.
14 */ 14 */
15enum bq27xxx_chip { BQ27000 = 1, BQ27500, BQ27425, BQ27742, BQ27510 }; 15enum bq27xxx_chip {
16 BQ27000 = 1, /* bq27000, bq27200 */
17 BQ27010, /* bq27010, bq27210 */
18 BQ27500, /* bq27500, bq27510, bq27520 */
19 BQ27530, /* bq27530, bq27531 */
20 BQ27541, /* bq27541, bq27542, bq27546, bq27742 */
21 BQ27545, /* bq27545 */
22 BQ27421, /* bq27421, bq27425, bq27441, bq27621 */
23};
16 24
17struct bq27xxx_platform_data { 25struct bq27xxx_platform_data {
18 const char *name; 26 const char *name;